-
Notifications
You must be signed in to change notification settings - Fork 152
ParseFailed on {-# LANGUAGE #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Would it be possible to send me the exact file which fails? |
Was able to reproduce the error and I think I fixed it. Would you be willing to try out |
Okay, thank you, some later. |
The reason this could happen was not correct BOM skipping when reading file in ASCII mode on Windows. Though, reading in UTF must solve that
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Language.Haskell.Stylish.Parse.parseModule: could not parse Google.hs: ParseFailed (SrcLoc {srcFilen
ame = ".hs", srcLine = 1, srcColumn = 4}) "Parse error: {-# LANGUAGE"
source:
output
file was UTF-8
Converted to UTF-8 without BOM, now works...
I'm not sure if that should already works on UTF8 with bom according this commit 3598ec2
Also maybe this issue should be merged with #3
The text was updated successfully, but these errors were encountered: