-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boolField with (Item a -> Compiler Bool) #564
Comments
True, but you can also just use |
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 |
Kritzefitz
added a commit
to Kritzefitz/hakyll
that referenced
this issue
Sep 2, 2017
This commits adds the helper boolFieldM. In contrast to boolField it allows using the Compiler monad in the passed function. boolField is also redefined in terms of boolFieldM. Closes jaspervdj#564
Fixed in #1044 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current
boolField
only accepts a function of typeItem a -> Bool
. In some cases it would be useful to have a version ofboolField
that accepts a function fo typeItem a -> Compiler a
.The text was updated successfully, but these errors were encountered: