Changeset 3148 for src/Pugs/Monads.hs
- Timestamp:
- 05/13/05 14:43:34 (4 years ago)
- svk:copy_cache_prev:
- 4718
- Files:
-
- 1 modified
-
src/Pugs/Monads.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Monads.hs
r3144 r3148 2 2 3 3 {-| 4 Monad structures.4 Common operations on Eval monad. 5 5 6 Note that there aren't actually any monads defined here--try looking in7 "Pugs.AST.SIO" and "Pugs.AST.Internals".8 9 6 > One Ring to rule them all, 10 7 > One Ring to find them, … … 19 16 import Pugs.Types 20 17 21 headVal :: [Val] -> Eval Val 22 headVal [] = retEmpty 23 headVal (v:_) = return v 18 {-| 19 Note that the actual monads are defined elsewhere -- try looking at 20 "Pugs.AST.SIO" and "Pugs.AST.Internals". 21 -} 24 22 25 23 -- |Perform the specified evaluation in a lexical scope that has been … … 188 186 _ -> do 189 187 return val 188 189 headVal :: [Val] -> Eval Val 190 headVal [] = retEmpty 191 headVal (v:_) = return v 192
