Hugs only: don't import exception types -- their instances are now in Control.Excepti...
[ghc-base.git] / Data / Typeable.hs-boot
index 4088389..45be319 100644 (file)
@@ -3,6 +3,7 @@
 
 module Data.Typeable where
 
+import Data.Maybe
 import GHC.Base
 import GHC.Show
 
@@ -13,6 +14,8 @@ mkTyCon      :: String -> TyCon
 mkTyConApp   :: TyCon -> [TypeRep] -> TypeRep
 showsTypeRep :: TypeRep -> ShowS
 
+cast :: (Typeable a, Typeable b) => a -> Maybe b
+
 class Typeable a where
   typeOf :: a -> TypeRep