Changes between Version 8 and Version 9 of Proposals/transformers
- Timestamp:
- 09/15/10 00:33:00 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Proposals/transformers
v8 v9 55 55 reader :: (r -> a) -> Reader r a 56 56 reader f = ReaderT (Identity . f) 57 58 runReader :: Reader r a -> r -> a 59 runReader m = runIdentity . runReaderT m 57 60 }}} 58 61 ''Rationale:'' This avoids repetition in the interfaces of both transformers and the proposed mtl-2. It makes transformers more useful on its own, and also saves clients of mtl from defining instances for both {{{State s}}} and {{{StateT s Identity}}} and ensuring that they are consistent.
