type error when compiling an older Haskell program

Scott Stoller stoller at cs.sunysb.edu
Tue Jul 10 14:48:10 EDT 2007

Simon Peyton-Jones writes:
 > | Add {-# OPTIONS_GHC -fno-mono-pat-binds #-}
 > |
 > | You are the fourth person to discover monomorphic pattern bindings :)
 > Yes, the details are here
 >  http://hackage.haskell.org/trac/haskell-prime/wiki/MonomorphicPatternBindings
 > If you could snip out the code that gave rise to the error, I'll add it
 > to that wiki page.  (There are four other examples there, one from Koen
 > which might perhaps be essentially the same thing.) 

it looks like that example from Koen (one of the authors of Paradox) is
essentially the same as this one, as you guessed.

If you'd like to add this code anyway, let me know.  or perhaps it would
be more appropriate to ask Koen, since it's his code.

best regards,

More information about the Glasgow-haskell-users mailing list