Changeset 8207 for src/Pugs/Eval.hs

Show
Ignore:
Timestamp:
12/13/05 11:24:11 (3 years ago)
Author:
gaal
Message:

* minor refactoring: type PadMutator? = (Pad -> Pad)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval.hs

    r8153 r8207  
    5151emptyEnv :: (MonadIO m, MonadSTM m)  
    5252         => String             -- ^ Name associated with the environment 
    53          -> [STM (Pad -> Pad)] -- ^ List of 'Pad'-mutating transactions used 
     53         -> [STM PadMutator]  -- ^ List of 'Pad'-mutating transactions used 
    5454                               --     to declare an initial set of global 
    5555                               --     variables 
     
    158158Used by 'reduceSym'. 
    159159-} 
    160 addGlobalSym :: (Pad -> Pad) -- ^ 'Pad'-transformer that will insert the new 
    161                              --     symbol 
     160addGlobalSym :: PadMutator -- ^ 'Pad'-transformer that will insert the new 
     161                           --     symbol 
    162162             -> Eval () 
    163163addGlobalSym newSym = do 
     
    986986            { envCaller = Just env 
    987987            , envDepth = envDepth env + 1 } 
    988     doBind :: [Pad -> Pad] -> [(Param, Exp)] -> Eval ([Pad -> Pad], [ApplyArg]) 
     988    doBind :: [PadMutator] -> [(Param, Exp)] -> Eval ([PadMutator], [ApplyArg]) 
    989989    doBind syms [] = return (syms, []) 
    990990    doBind syms ((prm, exp):rest) = do