[Haskell-cafe] Creating an alias for a function

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Oct 7 09:28:14 EDT 2009

Hello Deniz,

Wednesday, October 7, 2009, 5:23:24 PM, you wrote:

>>    Possible cause: the monomorphism restriction applied to the following:
>>      ord :: a -> Int (bound at test.hs:1:0)
>>    Probable fix: give these definition(s) an explicit type signature
>>                  or use -fno-monomorphism-restriction

> I don't see the problem? GHC seems to tell you about the monomorphism
> restriction in your example.

look further. runghc complains, ghc - don't. may be runghc enables -Wall?

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list