Changeset 8207 for src/Pugs/Monads.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/Monads.hs

    r7190 r8207  
    5454(Subsequent chained 'Eval's do /not/ see this new scope.) 
    5555-} 
    56 enterLex :: [Pad -> Pad] -- ^ Transformations on current 'Pad' to produce the 
     56enterLex :: [PadMutator] -- ^ Transformations on current 'Pad' to produce the 
    5757                         --     new 'Pad'. 
    5858         -> Eval a       -- ^ Evaluation to be performed in the new scope 
     
    167167                                    --     (must have leading @&@ sigil) 
    168168           -> ([Val] -> Eval Val)   -- ^ The actual primitive to wrap 
    169            -> ((Pad -> Pad) -> m t) -- ^ A (lambda) function that the 'Pad' 
     169           -> (PadMutator -> m t)  -- ^ A (lambda) function that the 'Pad' 
    170170                                    --     transformer is given to 
    171171           -> m t -- ^ Result of passing the pad-transformer to the \'action\' 
     
    188188-} 
    189189genSymCC :: String -- ^ Name of the primitive in the symbol table ('Pad'). 
    190          -> ((Pad -> Pad) -> Eval Val) -- ^ An \'action\' function that will 
     190         -> (PadMutator -> Eval Val)  -- ^ An \'action\' function that will 
    191191                                       --     take the pad-transformer and use 
    192192                                       --     it to perform some evaluation  
     
    263263        } 
    264264 
    265 genSubs :: t -> Var -> (t -> VCode) -> Eval [Pad -> Pad] 
     265genSubs :: t -> Var -> (t -> VCode) -> Eval [PadMutator] 
    266266genSubs env name gen = sequence 
    267267    [ genMultiSym name (codeRef $ gen env)