[Haskell-cafe] Creating an alias for a function

Deniz Dogan deniz.a.m.dogan at gmail.com
Wed Oct 7 09:23:24 EDT 2009


2009/10/7 Bulat Ziganshin <bulat.ziganshin at gmail.com>:
> Hello Deniz,
>
> Wednesday, October 7, 2009, 5:03:59 PM, you wrote:
>
> it depends. what i see with ghc 6.6.1:
>
> [snip]
>
>    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.

-- 
Deniz Dogan


More information about the Haskell-Cafe mailing list