I'm following the official instructions on the Hakyll site to get post teasers up and running on my site. Unfortunately, I've hit a snag, and the instructions aren't much help.
I'm getting an out-of-scope error for the item
value referenced in this snippet:
loadAndApplyTemplate
"template/postitem.html"
(teaserField "teaser" "content" <> defaultContext)
item
When embedding it into my site.hs
. On a side note for reproducibility's sake, it also wasn't made clear where the <>
operator came from; this required the import of one of Literate Haskell's modules.
It's completely unclear where this reference to item
came from, and because it's a fairly common word, I have to sift through thousands of results even when using find
and grep
on my machine.
What should I declare or import to gain access to item
here?