Changeset 2441 for src/Pugs/Types/Thunk.hs
- Timestamp:
- 04/28/05 18:38:12 (4 years ago)
- svk:copy_cache_prev:
- 3914
- Files:
-
- 1 modified
-
src/Pugs/Types/Thunk.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Types/Thunk.hs
r2323 r2441 1 {-# OPTIONS_GHC -fglasgow-exts #-}2 1 3 module Pugs.Types.Thunk where 2 class (Typeable a) => ThunkClass a where 3 thunk_iType :: a -> Type 4 thunk_iType = const $ mkType "Thunk" 5 thunk_force :: a -> Eval Val 4 6 5 import {-# SOURCE #-} Pugs.AST 6 import Pugs.Internals 7 import Pugs.Types 7 instance ThunkClass VThunk where 8 thunk_force (MkThunk c) = c 8 9 9 class (Typeable a) => Class a where10 iType :: a -> Type11 iType = const $ mkType "Thunk"12 force :: a -> Eval Val
