[Haskell-cafe] Typeclass question

Andrew Wagner wagner.andrew at gmail.com
Sat Dec 27 14:24:26 EST 2008


I'm sure there's a way to do this, but it's escaping me at present. I  
want to do something like this:

data Foo = Bar a => Foo a Bool ...

That is, I want to create a new type, Foo, whose constructor takes  
both a Boolean and a value of a type of class Bar.


More information about the Haskell-Cafe mailing list