[Haskell-cafe] Creating an alias for a function

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


2009/10/7 michael rice <nowgate at yahoo.com>
>
> Actually I used it to fake the Pascal ord(x) function:
>
> ord = fromEnum
>
> Problem?
>
> Michael
>

If the monomorphism restriction applies, the compiler (assuming you're
using GHC) will tell you about it.

--
Deniz Dogan


More information about the Haskell-Cafe mailing list