[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#314741: marked as done (hugs -98 accepts "(*2+1)"; Report section 3.5 says it shouldn't)



Your message dated Fri, 12 Dec 2025 12:40:00 +0000
with message-id <[🔎] E1vU2RE-000oP9-2M@fasolo.debian.org>
and subject line Bug#1121581: Removed package(s) from unstable
has caused the Debian Bug report #314741,
regarding hugs -98 accepts "(*2+1)"; Report section 3.5 says it shouldn't
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
314741: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314741
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: hugs
Version: 98.200503.08-1

While having fun exploring the language, I discovered something
unexpected: Hugs interprets (*2+1) as as (*(2+1)), in contravention of
http://www.haskell.org/onlinereport/exps.html#sect3.5

# Syntactic precedence rules apply to sections as follows. (op e) is
# legal if and only if (x op e) parses in the same way as (x op (e));
# and similarly for (e op). For example, (*a+b) is syntactically invalid,
# but (+a*b) and (*(a+b)) are valid. Because (+) is left associative,
# (a+b+) is syntactically correct, but (+a+b) is not; the latter may
# legally be written as (+(a+b)).

A couple of examples, including specifically the one that the Report
says is syntactically invalid:

__   __ __  __  ____   ___      _________________________________________
||   || ||  || ||  || ||__      Hugs 98: Based on the Haskell 98 standard
||___|| ||__|| ||__||  __||     Copyright (c) 1994-2005
||---||         ___||           World Wide Web: http://haskell.org/hugs
||   ||                         Report bugs to: hugs-bugs@haskell.org
||   || Version: 20050308       _________________________________________

Haskell 98 mode: Restart with command line option -98 to enable extensions

Type :? for help
Hugs.Base> (*2+1) 6
18
Hugs.Base> let a=2; b=3 in (*a+b) 5
25


If you're going to offer the extension, I think it needs to be justified
why (*a+b) is not the same as (\x -> x*a+b)


--- End Message ---
--- Begin Message ---
Version: 98.200609.21-7+rm

Dear submitter,

as the package hugs98 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1121581

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)

--- End Message ---

Reply to: