haskell / haskell/stylish-haskell

Incorrectly identifies CPP as TemplateHaskell

Aperta
#140 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Haskell
Stelle
1k
Fork
153
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

This is probably a fault of haskell-src-exts, but I have some CPP macros that I use to help [implement some repetitive instances](https://github.com/ivan-m/theseus/blob/edbac4a80bcbff110e224eac4c4ba5cb5d134849/src/Data/Theseus/Values.hs#L54).

However, stylish-haskell fails to parse this with:

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.