Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
An item is a combination of some content and its Identifier
. This way, we
can still use the Identifier
to access metadata.
Synopsis
- 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 | |
|
Instances
Foldable Item Source # | |
Defined in Hakyll.Core.Item fold :: Monoid m => Item m -> m # foldMap :: Monoid m => (a -> m) -> Item a -> m # foldMap' :: Monoid m => (a -> m) -> Item a -> m # foldr :: (a -> b -> b) -> b -> Item a -> b # foldr' :: (a -> b -> b) -> b -> Item a -> b # foldl :: (b -> a -> b) -> b -> Item a -> b # foldl' :: (b -> a -> b) -> b -> Item a -> b # foldr1 :: (a -> a -> a) -> Item a -> a # foldl1 :: (a -> a -> a) -> Item a -> a # elem :: Eq a => a -> Item a -> Bool # maximum :: Ord a => Item a -> a # | |
Traversable Item Source # | |
Functor Item Source # | |
Show a => Show (Item a) Source # | |
Binary a => Binary (Item a) Source # | |
itemSetBody :: a -> Item b -> Item a Source #