Safe Haskell | None |
---|---|
Language | Haskell2010 |
An item is a combination of some content and its Identifier
. This way, we
can still use the Identifier
to access metadata.
- data Item a = Item {
- itemIdentifier :: Identifier
- itemBody :: a
- itemSetBody :: a -> Item b -> Item a
- withItemBody :: (a -> Compiler b) -> Item a -> Compiler (Item b)
Documentation
Item | |
|
itemSetBody :: a -> Item b -> Item a Source #