GHC 5 seemed to warn that a binding was unused if it was never
referenced. Now (on 6.0.1) it seems to warn if a binding is never
referenced by a used binding. I.e, usedness is now transitive.
(Neither version warns about bindings with names beginning with '_'.)
I like the old behavior much
I'd be interested to know what others think about this. The
disadvantage with the GHC5 behaviour is that you might see a warning
about unused f, remove the definition of f, and thereby provoke a
new warning, for a function g that was mentioned in f's right hand
side.
It's easy to change -- the
The following program should, if I'm not completely mistaken, output
something involving Correct:
module Main where
f x = case x of
[EMAIL PROTECTED] - \y - x y
[EMAIL PROTECTED] - \y - x y
main = putStrLn $ f (error Correct) `seq` Error
However, whether it does so is a complicated
Athlon, Windows 2000, 512MB RAM, GHC 6.0.1 installed from
www.haskell.org/ghc/dist/6.0.1/ghc-6-0-1.msi.
copy con bug.hs
import Data.Array.IO (IOUArray)
import Data.Array.MArray (newArray)
import Data.Word (Word8)
emptyArray :: IO (IOUArray Int Word8)
emptyArray = newArray (1,1600) 0
main =
The issue also affects mutually recursive groups of bindings. If none
of the members of a recursive group is referenced, should the whole
group be declared as unused?
I vote yes. I seem to recall that the new behaviour was the result of
user feedback, was it not?
Cheers,
Simon
Bugs item #842445, was opened at 2003-11-14 23:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=108032aid=842445group_id=8032
Category: hslibs/posix
Group: 6.0.1
Status: Open
Resolution:
FYI a new greencard rpm package built with ghc-6.0.1 is
now available from :
http://haskell.org/~petersen/rpms/greencard/?C=MO=D
Cheers, Jens
___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell
According to the communities report there are different
generic haskell projects (Jeuring/Hinze and PJ/Lämmel) out there.
But I don't understand their relation.
Can you use both at the same time?
Is one building on the other?
Are there adressing different issues?
A clarifying sentence or two
let (Just mail) = lookup Generic Haskell Diffs? mailbox
in replace Are there Are they mail
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
[EMAIL PROTECTED]
Gesendet: Freitag, 14. November 2003 10:49
An: [EMAIL PROTECTED]
Betreff:
Martin Ewig wrote (snipped)
I think that some visual notations are more readable than text
(but not all). In particular, if you try to teach lambda calculus
or type inference to beginners, visual notations can be extremely
helpful.
For some people, perhaps. I don't have a very good mind for
[EMAIL PROTECTED] wrote:
According to the communities report there are different
generic haskell projects (Jeuring/Hinze and PJ/Lämmel) out there.
But I don't understand their relation.
Can you use both at the same time?
Is one building on the other?
Are there adressing different issues?
A
Thank you, Ralf.
Curiosity satisfied. :)
Markus
--
Markus Schnell
There is just one Generic Haskell project
even though the actual language extension is a moving target of course
because this is an active project.
The boilerplate approach is about lightweight generic programming IN
Apologies if you receive multiple copies of this message.
**
*** Fourth Workshop on ***
***Language Descriptions, Tools and Applications ***
*** LDTA 2004
On behalf of the many contributors, I am happy to announce that the
-
Haskell Communities and Activities Report
(5th edition, November 2003)
http://www.haskell.org/communities/
rant
Frustrating.
Its been 4 years since I seriously looked at
Haskell. I would have expected that over this
time, someone here would have consolidated it into
a language useful for real world applications.
The Haskell in Practice page is shockingly short
and many of the examples
On Fri, 14 Nov 2003, Simon Marlow wrote:
However, several people have found the web server useful and are using
it, either as the basis of further research, or in some cases as the
basis for a real production web server.
So anyone out there still using it in production?
-Alex-
16 matches
Mail list logo