haskell / haskell/stylish-haskell

Modules with Unsafe language pragmas can use "safe import"

Aperta
#149 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
haskell-src-exts
Lingua principale
Haskell
Stelle
1k
Fork
153
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

If I use `stylish-haskell` on a module with
```
{-# LANGUAGE Unsafe #-} -- "import safe" is enforced
```
I still get the following error:
```
Language.Haskell.Stylish.Parse.parseModule: could not parse src/Extract/DefinitionsTheoremsLemmas.hs: ParseFailed (SrcLoc ".hs" 15 13) "At least one of Safe or SafeImports or Trustworthy language extensions needs to be enabled. Please add: {-# LANGUAGE Safe #-} or {-# LANGUAGE SafeImports #-} or {-# LANGUAGE Trustworthy #-} language pragma at the top of your module."
```
`Unsafe` is described [on the GHC wiki](https://ghc.haskell.org/trac/ghc/wiki/SafeHaskell).

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.