[Haskell-cafe] Polymorphic record field?

Daniel Fischer daniel.is.fischer at web.de
Sun Sep 26 07:09:56 EDT 2010


On Sunday 26 September 2010 12:53:46, Michael Snoyman wrote:
> data MyStruct = forall a. MyTypeClass a => MyStruct {myField :: a}

Note that that requires
{-# LANGUAGE ExistentialQuantification #-}


More information about the Haskell-Cafe mailing list