Re[4]: [Haskell-cafe] Creating an alias for a function

2009-10-07 Thread Bulat Ziganshin
Hello Luke, Wednesday, October 7, 2009, 11:35:47 AM, you wrote: >>> car = head >> >> unfortunately it doesn't work without -fno-monomorphism-restriction > It should be fine without the monomorphism restriction. Said > restriction only applies to functions with typeclass constraints, of > which

Re: Re[4]: [Haskell-cafe] Creating an alias for a function

2009-10-07 Thread michael rice
Actually I used it to fake the Pascal ord(x) function: ord = fromEnum Problem? Michael --- On Wed, 10/7/09, Bulat Ziganshin wrote: From: Bulat Ziganshin Subject: Re[4]: [Haskell-cafe] Creating an alias for a function To: "Luke Palmer" Cc: "Bulat Ziganshin" , haskell-c

Re: Re[4]: [Haskell-cafe] Creating an alias for a function

2009-10-07 Thread Deniz Dogan
2009/10/7 michael rice > > 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 ___