[Haskell] Re: Partially applied type class functions

Andre Pang ozone at algorithm.com.au
Sat Aug 6 11:01:31 EDT 2005


On 07/08/2005, at 12:47 AM, Srinivas Nedunuri wrote:

> Finally a plain English explanation of the silly thing. Thank you!  
> I tried
> reading the Haskell report's version of it, and yes I'm sure it has  
> all the
> gory technical details, but at the end I was still left thinking So  
> exactly
> what is the monomorphism restriction? Why on earth couldn't they  
> have added
> a simple one line explanation like this?

If you're using GHC, a possibly very simple solution to your program  
is to add the -fno-monomorphism-restriction flag to the compilation,  
and pray you don't run into another type error ;)


-- 
% Andre Pang : trust.in.love.to.save  <http://www.algorithm.com.au/>




More information about the Haskell mailing list