|
The simplest program: msg#00038lang.haskell.glasgow.bugs
The current HEAD is not able to compile the simplest of all Haskell programs... but I don't think the bug affects anyone. Compiling > module Main where > main = return () yields Main.hs:1: Ambiguous type variable `m' in these top-level constraint `Monad m' arising from use of `return' at Main.hs:3 Possible cause: the monomorphism restriction applied to the following: main :: m () (bound at Main.hs:3) Probable fix: give these definition(s) an explicit type signature Giving the type signature helps, of course. The same program is accepted by ghc-5.04.2. Cheers, Wolfgang
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Pattern matching with implicit par. bug, Jorge Adriano |
|---|---|
| Next by Date: | Re: The simplest program, Wolfgang Thaller |
| Previous by Thread: | Pattern matching with implicit par. bug, Jorge Adriano |
| Next by Thread: | Re: The simplest program, Axel Simon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |