[Haskell-cafe] not getting most general type - is this a bug in
hugs?
blaetterrascheln at web.de
blaetterrascheln at web.de
Thu Jul 29 09:12:43 EDT 2004
$ cat x.hs
rep0 :: Num a => [a]
rep0 = repeat 0
rep0' = repeat 0
$ hugs x.hs
...
Main> :t rep0
rep0 :: Num a => [a]
Main> :t repeat 0
repeat 0 :: Num a => [a]
Main> :t rep0'
rep0' :: [Integer] -- WHAT??
Main> :version
-- Hugs Version Nov 2002
________________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193
More information about the Haskell-Cafe
mailing list