Copyright | (c) Hans Hoglund 2012-2014 |
---|---|
License | BSD-style |
Maintainer | hans@hanshoglund.se |
Stability | experimental |
Portability | non-portable (TF,GNTD) |
Safe Haskell | None |
Language | Haskell2010 |
Event type
A Event
is a value transformed to appear in some Span
. Like Span
, it is an instance of Transformable
.
Construction
event :: Iso (Span, a) (Span, b) (Event a) (Event b) Source
View a event as a pair of the original value and the transformation (and vice versa).
eventee :: (Transformable a, Transformable b) => Lens (Event a) (Event b) a b Source
View the value in the event.