I've copied the Aeson Template-Haskell module into a project of mine, and I'm trying to get it to compile. However, when I compile, I get the following error:
compiler/Elm/Haskelm/Json.hs:283:1:
parse error (possibly incorrect indentation or mismatched brackets)
That line uses the 'Name
convention from Template-Haskell, so I think it's probably treating it as single-quotation marks instead of the Template-Haskell notation.
Why would it be doing this? At the beginning of my file, I have:
{-# LANGUAGE CPP, FlexibleInstances, IncoherentInstances, NamedFieldPuns,
NoImplicitPrelude, OverlappingInstances, TemplateHaskell,
UndecidableInstances #-}
and in my Cabal file, I have
extensions: TemplateHaskell
MultiWayIf
but it's not treating the single quotes specially.
Note that, other than changing the Module name, the file I'm trying to compile is completely unchanged from the github one linked to.