[Haskell-cafe] Embedded Functions in Algebraic Data Types?

Michael Feathers mfeathers at mindspring.com
Sun Feb 10 08:34:01 EST 2008

On a lark, I loaded this into Hugs this morning, and it didn't complain:

data Thing = Thing (Integer -> Integer)

But, I've never seen that sort of construct in an example.  Do people 
ever embed functions in ADTs?


More information about the Haskell-Cafe mailing list