[Haskell-cafe] error compiling 24 Days of Hackage: heist

Bas van Dijk v.dijk.bas at gmail.com
Fri Feb 6 14:12:17 UTC 2015


On 6 February 2015 at 13:47, hokum <h-o-k-u-m at yandex.ru> wrote:
> It's probably something to do with lenses, but I'm not very familiar with it. Four hours of googling didn't give me anything on the subject, so any help?

Indeed, hcTemplateLocations is not a record field. Try using lenses instead:

initHeist $ mempty
  & hcTemplateLocations .~ [ loadTemplates "templates" ]
  & hcInterpretedSplices .~ defaultInterpretedSplices


More information about the Haskell-Cafe mailing list