hakyll-4.7.2.1: A static website compiler library

Safe HaskellNone
LanguageHaskell98

Hakyll.Core.Item

Description

An item is a combination of some content and its Identifier. This way, we can still use the Identifier to access metadata.

Synopsis

Documentation

data Item a Source

Constructors

Item 

Instances

itemSetBody :: a -> Item b -> Item a Source

withItemBody :: (a -> Compiler b) -> Item a -> Compiler (Item b) Source

Perform a compiler action on the item body. This is the same as traverse, but looks less intimidating.

withItemBody = traverse