[Haskell-cafe] Defining types (newbie)

Matthew Brecknell haskell at brecknell.org
Wed Mar 14 02:48:35 EDT 2007


I said:
> Try this. You'll also need to change "ThingCompare a" to "ThingCompare"
> in all your function type signatures.
> 
> > data ThingCompare
> >   = forall a. TC (BooleanOp a) (Field a)
> >   | And ThingCompare ThingCompare
> >   | Or ThingCompare ThingCompare
> 

Sorry. For that to work, you would need "-fglasgow-exts", which presumes
you are using GHC. I just noticed from your post that you are using
Hugs.



More information about the Haskell-Cafe mailing list