Changeset 3904 for src/Pugs/Monads.hs

Show
Ignore:
Timestamp:
05/26/05 11:56:40 (4 years ago)
Author:
scook0
svk:copy_cache_prev:
5482
Message:

* Haddocks for Internals.hs
* Renamed 'enterLoop' to 'enterWhile'

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Monads.hs

    r3740 r3904  
    9292        } 
    9393 
    94 enterLoop :: Eval Val -> Eval Val 
    95 enterLoop action = genSymCC "&last" $ \symLast -> do 
     94{-| 
     95Bind @&last@ and @&next@ to subs that respectively break-out-of and repeat the  
     96@while@\/@until@, then perform the given evaluation in the new lexical scope. 
     97 
     98Note that this function is /not/ responsible for performing the actual 
     99@while@\/@until@ test; it is the responsibility of the caller to add such a 
     100test to the top of the body evaluation. 
     101-} 
     102enterWhile :: Eval Val -- ^ Evaluation representing loop test & body 
     103           -> Eval Val 
     104enterWhile action = genSymCC "&last" $ \symLast -> do 
    96105    genSymPrim "&next" (const action) $ \symNext -> do 
    97106        enterLex [symLast, symNext] action 
     
    231240        } ] 
    232241 
     242-- | (This doesn't seem to be used at the moment...) 
    233243caller :: Int -> Eval Env 
    234244caller n = do