Closed mkaput closed 4 years ago
I would like this too, please!
I might be doing something really wrong; but it seems to me that is also removes pattern
in import statements:
import Data.Types ( PairData'(..)
, pattern OnlineP
)
Becomes:
import Data.Types ( PairData'(..)
, OnlineP
)
Which is invalid.
Adding --brittany-disable-next-binding
anywhere before this import statement makes no difference.
The pattern import thing has been fixed. See #204.
As for the original issue, this is enough to trigger the problem:
{-# LANGUAGE PatternSynonyms #-}
pattern Foo pk <- (Just pk)
Any hints on where to look if I wanted to take a stab at fixing this issue?
This fix was merged in march, but there was no release since then. Is there a plann to do a release @lspitzner ? :)
As of 9d91523 Brittany crashes on pattern synonyms: