We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There are some cases where formatting silently fails when -XBangPatterns is enabled.
-XBangPatterns
Some examples:
{-# LANGUAGE BangPatterns #-} -- These work data Example = Example {-# UNPACK #-} !Int data Example1 = Example1 {-# UNPACK #-} !Int -- These fail data ExampleFail = ExampleFail {-# UNPACK #-} !Int data ExampleFail2 = ExampleFail2 {-# UNPACK #-} !Int
The CLI does not complain, but when using hls on Visual Studio Code you can see in the output tab the following message from hls:
output
hls
[Error - 12:07:48 PM] Request textDocument/formatting failed. Message: brittanyCmd: HsBangTy{} HsBangTy{} HsBangTy{} HsBangTy{} HsBangTy{} HsBangTy{} HsBangTy{} HsBangTy{} Code: -32602
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There are some cases where formatting silently fails when
-XBangPatterns
is enabled.Some examples:
The CLI does not complain, but when using hls on Visual Studio Code you can see in the
output
tab the following message fromhls
:The text was updated successfully, but these errors were encountered: