Hugs Bugs & Features
Here is a list of known Hugs bugs. If you find a bug which is not on this
list, please report it by sending email to email@example.com.
Some bugs may be parts of Haskell 98 that are not yet implemented in Hugs 98.
Please consult the Hugs 98 User's Guide
before you report differences between the Haskell 98 report and Hugs 98.
The following "bugs" have been reported, but not been fixed.
- Depending on the relative sizes of your heap, Hugs stack and C stack,
expressions like this
foldl (\n _ -> n + 1) 0 [1..100000]
can overflow the C stack before exhausting the heap or Hugs stack. On Unix,
this usually causes a segmentation fault and causes Hugs to abort.
- Björn von Sydow (firstname.lastname@example.org) reports that this expression runs
in constant space
mapM_ putStr (repeat "")
but this program does not:
main = mapM_ putStr (repeat "")
This is caused by "CAF-leaks" - a long-standing problem of most
Haskell compilers (except HBC?). The problem is that main is being updated
with an expression of the form:
main = putChar ' ' >> putChar ' ' >> putChar ' ' >> mapM_ putStr (repeat "")
In the long term, we hope to avoid this kind of problem by using a smarter
garbage collector. In the short term, you can avoid the problem by making
the troublesome CAFs non-updateable. For example, you might rewrite main as:
main _ = putChar ' ' >> putChar ' ' >> putChar ' ' >> mapM_ putStr (repeat "")
and then execute
A lower-level, more complete list of outstanding bugs can be found
here [somewhat out-of-date now; last
updated: April 2002.]
The following look like bugs but aren't: