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
Describe the bug I had a type defined like so, which GHCID didn't like:
getRawElementsByUserSelect :: Query '[] '[] DB '[NotNull 'PGint4] (RowPG RawElementData)
Unticked promoted constructor: ‘NotNull’. Use ‘'NotNull’ instead of ‘NotNull’.
So I used GHCID's suggestion:
getRawElementsByUserSelect :: Query '[] '[] DB '[ 'NotNull 'PGint4] (RowPG RawElementData)
And Ormolu stopped formatting in place:
Parsing of formatted code failed: src/lib/QuerySqueal.hs<rendered>:49:46 parse error on input ' Please, consider reporting the bug.
To Reproduce Try formatting a Type Level list like the one above.
Expected behavior I expected the formatter to continue to run.
Environment
OS name + version: Manjaro Linux 20.0.3
Version of the code: ormolu 0.1.0.0 master 033bb16 using ghc-lib-parser 8.10.1.20200523
Additional context Thanks. Great tool.
The text was updated successfully, but these errors were encountered:
If I remember correctly, this is because in '['NotNull 'PGint4], '[' is parsed as a character literal. So the space is necessary in this case.
'['NotNull 'PGint4]
'['
Sorry, something went wrong.
Yes, it is a bug all right.
I have this same issue.
DataKinds
Successfully merging a pull request may close this issue.
Describe the bug
I had a type defined like so, which GHCID didn't like:
Unticked promoted constructor: ‘NotNull’. Use ‘'NotNull’ instead of ‘NotNull’.
So I used GHCID's suggestion:
And Ormolu stopped formatting in place:
To Reproduce
Try formatting a Type Level list like the one above.
Expected behavior
I expected the formatter to continue to run.
Environment
OS name + version:
Manjaro Linux 20.0.3
Version of the code:
ormolu 0.1.0.0 master 033bb16
using ghc-lib-parser 8.10.1.20200523
Additional context
Thanks. Great tool.
The text was updated successfully, but these errors were encountered: