stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

Incorrectly identifies CPP as TemplateHaskell

Open ivan-m opened this issue 7 years ago • 1 comments

This is probably a fault of haskell-src-exts, but I have some CPP macros that I use to help implement some repetitive instances.

However, stylish-haskell fails to parse this with:

Language.Haskell.Stylish.Parse.parseModule: could not parse Theseus/Values.hs: ParseFailed (SrcLoc "<unknown>.hs" 76 1) "TemplateHaskell language extension is not enabled. Please add {-# LANGUAGE TemplateHaskell #-} pragma at the top of your module."

ivan-m avatar Nov 30 '16 05:11 ivan-m

This might be related: https://github.com/jaspervdj/stylish-haskell/issues/51#issuecomment-30278481.

neongreen avatar Apr 15 '17 18:04 neongreen