[Haskell-cafe] A Foldable binary search tree

Jules Bean jules at jellybean.co.uk
Thu Dec 27 09:59:13 EST 2007


Simon Peyton-Jones wrote:
> As others have pointed out, GHC allows you to put a context on any data constructor.  I prefer this "where" syntax:

But, in 6.8.x, you will need -XGADTS to permit this.

6.6.x permitted it anyway, arguably in error.

http://hackage.haskell.org/trac/ghc/ticket/1901

Jules


More information about the Haskell-Cafe mailing list