Assumes backticks are used consistently in patterns #234

Closed
opened 2019-06-15 06:59:00 +02:00 by scooby · 2 comments
scooby commented 2019-06-15 06:59:00 +02:00 (Migrated from github.com)

It looks like Brittany assumes backticks are used consistently in patterns.

To reproduce, Example.hs:

True `nand` True = False
nand _ _ = True

nor False False = True
_ `nor` _ = False

Running stack --resolver lts-12.9 exec --package brittany -- brittany --omit-output-check ~/tmp/Example.hs:

True `nand` True = False
`nand` _ _       = True

nor False False = True
_ nor _         = False
It looks like Brittany assumes backticks are used consistently in patterns. To reproduce, Example.hs: ```haskell True `nand` True = False nand _ _ = True nor False False = True _ `nor` _ = False ``` Running `stack --resolver lts-12.9 exec --package brittany -- brittany --omit-output-check ~/tmp/Example.hs`: ```haskell True `nand` True = False `nand` _ _ = True nor False False = True _ nor _ = False ```
scooby commented 2019-06-15 07:10:46 +02:00 (Migrated from github.com)

Given that lts-12.9 might be old, I checked with master as of 305f98f, and stack --stack-yaml stack-8.6.5.yaml exec brittany -- --omit-output-check ~/tmp/Example.hs produces the same output.

Given that lts-12.9 might be old, I checked with master as of [305f98f](https://github.com/lspitzner/brittany/commit/305f98fad77c9536c25d0c76d7536aad2a7ecc74), and `stack --stack-yaml stack-8.6.5.yaml exec brittany -- --omit-output-check ~/tmp/Example.hs` produces the same output.
scooby commented 2019-06-18 04:08:29 +02:00 (Migrated from github.com)

Thanks for jumping on this!

Thanks for jumping on this!
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#234
There is no content yet.