21 lines
427 B
Haskell
Raw Permalink Normal View History

2005-04-24 08:51:33 +00:00
module API where
import Data.Typeable
2005-04-24 08:51:33 +00:00
data TestIO = TestIO {
field :: IO String
#if __GLASGOW_HASKELL__ >= 800
} deriving Typeable
#else
2005-04-24 08:51:33 +00:00
}
instance Typeable TestIO where
#if __GLASGOW_HASKELL__ >= 603
typeOf i = mkTyConApp (mkTyCon "API.TestIO") []
#else
typeOf i = mkAppTy (mkTyCon "API.TestIO") []
#endif
#endif
2005-04-24 08:51:33 +00:00
testio :: TestIO
testio = TestIO { field = return "default value" }