Re: Bug in Hugs, Haskell behavior question
"Brandon S. Allbery KF8NH" <[email protected]> Fri, 4 Apr 2008 23:21:30 -0400
| Newsgroups | gmane.comp.lang.haskell.cafe,gmane.comp.lang.haskell.hugs.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Apr 4, 2008, at 23:15 , Fritz Ruehr wrote: > In any case, opinions about the behavior aside, there is a Hugs > internal error here, so I hope that much is useful. I am not greatly surprised by that: a numeric constant like `2' is really a polymorphic value `(fromInteger 2 :: Num a => a)' per the Report, and if Hugs does that conversion at the wrong time then it might well end up attempting to turn a function call into a pattern (normally impossible in Haskell, as any attempt would either shadow the function or raise a syntax error). -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [email protected] system administrator [openafs,heimdal,too many hats] [email protected] electrical and computer engineering, carnegie mellon university KF8NH