hakyll
hakyll copied to clipboard
boolField with (Item a -> Compiler Bool)
The current boolField
only accepts a function of type Item a -> Bool
. In some cases it would be useful to have a version of boolField
that accepts a function fo type Item a -> Compiler a
.
True, but you can also just use field
-- look at the definition of boolField
.
Yes, that's what my current solution looks like. Nonetheless I think this would be a helper worth having in Hakyll.
Okay, do you want to send a pull request to add boolFieldM
?