Changeset 2441 for src/Pugs/Types/Object.hs
- Timestamp:
- 04/28/05 18:38:12 (4 years ago)
- svk:copy_cache_prev:
- 3914
- Files:
-
- 1 modified
-
src/Pugs/Types/Object.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Types/Object.hs
r2323 r2441 1 {-# OPTIONS_GHC -fglasgow-exts #-}2 1 3 module Pugs.Types.Object where 2 class (Typeable a) => ObjectClass a where 3 object_iType :: a -> Type 4 4 5 import Pugs.Internals 6 import Pugs.Types 7 8 class (Typeable a) => Class a where 9 iType :: a -> Type 5 instance (Typeable a) => ObjectClass (IVar a) where 6 object_iType (IScalar x) = scalar_iType x 7 object_iType (IArray x) = array_iType x 8 object_iType (IHash x) = hash_iType x 9 object_iType (ICode x) = code_iType x 10 object_iType (IHandle x) = handle_iType x 11 object_iType (IRule x) = rule_iType x 12 object_iType (IThunk x) = thunk_iType x 13 object_iType (IPair x) = pair_iType x
