Syntactically invalid result on Esqueleto code #101
Labels
No Label
blocked: dependency
blocked: info-needed
bug
duplicate
enhancement
fixed in HEAD
help wanted
hs:arrows
hs:brackets
hs:classes
hs:comments
hs:do-notation
hs:guards
hs:lists
hs:operators
hs:patterns
hs:records
hs:types
invalid
language extension support
layouting
needs confirmation
priority: high
priority: low
question
revisit before next release
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: hexagoxel/brittany#101
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Running
brittany /Users/maximiliantagher/Documents/Mercury/hs/mercury-web-backend/src/Handler/Home.hs
gives me: "ERROR: brittany pretty printer returned syntactically invalid result.", even though the code compiles fine.Source file:
If you remove the Esqueleto code (the
result <- ...
block of code), brittany runs successfully.Version:
OS: macOS High Sierra 10.13.2
GHC: Should be 8.2.2 since brittany was installed with LTS 10.
Installation method:
stack install brittany --resolver lts-10.0
I also tried with my older version of brittany, which was 0.8.something, and compiled with GHC 8.0.x.
Brittany configuration:
If you'd like, I can try to reproduce in a standalone file that you could compile yourself (this is just a random file in a web server I'm working on).
As far as I can tell this is an issue with infix type constructors.
This explodes:
This does not:
produced with
--omit-output-check
Should have a fix for this soon.
With the linked fix:
Thank you! Do you need me to test this or anything?
The fix by eborden is published as part of 0.9.0.1.