Changes between Version 4 and Version 5 of Language/Overview/EffectSystem
- Timestamp:
- 06/17/10 02:54:50 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Language/Overview/EffectSystem
v4 v5 38 38 }}} 39 39 40 In this type, `!e1` is an ''effect variable'', much like `a` is a type variable. `!Console` is an ''effect constructor'' whichtells us what else happens when `putStr` is called, besides returning a unit value.40 In this type, `!e1` is an ''effect variable'', much like `a` is a type variable. `!Console` is an ''effect constructor'' that tells us what else happens when `putStr` is called, besides returning a unit value. 41 41 42 42 Because this second version of `putStr` doesn't have the monad in its type, we can just use the plain version of `map` and not have to worry about `mapM`.
