[Haskell-cafe] Making MVar and Chan Instances of Typeable

MR K P SCHUPKE k.schupke at imperial.ac.uk
Fri Nov 5 10:55:37 EST 2004


My mistake:

instance Typeable a => Typeable (MVar a) where
  typeOf (x::MVar x) =
    mkAppTy (mkTyCon "Control.Concurrent.MVar.MVar") [typeOf (undefined::x)]

	Keean.


More information about the Haskell-Cafe mailing list