haskell / haskell/stylish-haskell

CPP mangling

Aperta
#203 1 commento 4 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

I tried having this in my Haskell source:

```haskell
{-# LANGUAGE CPP #-}

module Foo where

import Prelude ()

import Prelude.Compat hiding ((<$>)
#if MIN_VERSION_base_compat (0,9,3)
, (<>)
#endif
)

...haskell
{-# LANGUAGE CPP #-}

module Foo where

import Prelude ()

import Prelude.Compat hiding ((<$>), (<>))
```

(Note: this happens no matter what CPP macro it's testing is, whether it evalutes to true or false.)
However, running stylish-haskell on this seems to ignore the CPP here and simplifies this to:

```

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.