Show
Ignore:
Timestamp:
06/01/05 17:46:40 (4 years ago)
Author:
theorbtwo
svk:copy_cache_prev:
5861
Message:

Hackish Code.body support (presently useless as well, as there aren't any
methods on Code::Exp, but that should change soon).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Types/Code.hs

    r3506 r4270  
    11 
    22class (Typeable a) => CodeClass a where 
    3     code_iType :: a -> Type 
     3    code_iType    :: a -> Type 
    44    code_iType = const $ mkType "Code" 
    55    code_fetch    :: a -> Eval VCode 
     
    3030        _           -> mkType "Sub" 
    3131    code_fetch    = return 
    32     code_store _ _= retConstError undef 
     32    code_store c _= retConstError $ VStr $ show c 
    3333    code_assuming c [] [] = return c 
    3434    code_assuming _ _ _   = error "assuming"