projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use explicit language extensions & remove extension fields from base.cabal
[ghc-base.git]
/
Data
/
Typeable.hs-boot
diff --git
a/Data/Typeable.hs-boot
b/Data/Typeable.hs-boot
index
4088389
..
da6142e
100644
(file)
--- a/
Data/Typeable.hs-boot
+++ b/
Data/Typeable.hs-boot
@@
-1,17
+1,17
@@
-
-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
+{-# LANGUAGE NoImplicitPrelude #-}
module Data.Typeable where
module Data.Typeable where
+import Data.Maybe
import GHC.Base
import GHC.Base
-import GHC.Show
data TypeRep
data TyCon
mkTyCon :: String -> TyCon
mkTyConApp :: TyCon -> [TypeRep] -> TypeRep
data TypeRep
data TyCon
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
class Typeable a where
typeOf :: a -> TypeRep