[Haskell-cafe] Read instance for GATD

Stephen Tetley stephen.tetley at gmail.com
Fri Jun 25 13:08:47 EDT 2010


Hi Corentin

I think Oleg Kiselyov is parsing / reading into a GADT here:

http://okmij.org/ftp/tagless-final/tagless-typed.html

See the section - Metatypechecking: Staged Typed Compilation into GADT
using typeclasses

http://okmij.org/ftp/Haskell/staged/TypeCheck.hs
http://okmij.org/ftp/Haskell/staged/TermLift.hs

His solution requires quite a bit of machinery - Template Haskell, a
TypeCheck type class...

Best wishes

Stephen


More information about the Haskell-Cafe mailing list