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

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


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

Keean.


More information about the Haskell-Cafe mailing list