#1200: ghci scripts ending in printf lines fail with Exception:
Prelude.undefined
----------------------------+-----------------------------------------------
Reporter: dons | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.8
Component: libraries/base | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
----------------------------+-----------------------------------------------
Changes (by igloo):
* milestone: 6.6.1 => 6.8
* owner: igloo =>
Comment:
The HEAD doesn't seem to get this quite right, e.g. with
{{{
main :: IO ()
main = print def
def :: (Num a, Enum a) => a
def = toEnum 0
instance Num ()
}}}
I get
{{{
$ ghci def.hs -fno-warn-missing-methods -v0
*Main> main
0
*Main> def
()
$ ghc def.hs -o def -fno-warn-missing-methods -fextended-default-rules
$ ./def
()
}}}
whereas I would expect all three to print `()`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1200>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs