lspitzner / lspitzner/brittany
bad indentation/errors for unhandled local definitions (generalization of #20)
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 686
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
Any unhandled syntactical construct inserted locally (where/let) will lead to an error similar to the one in #20 if it is the first element in the layout block. This affects e.g. SPECIALIZE pragma, fixity declaration or pattern synonym type signature (see [Sig constructors](https://downloads.haskell.org/~ghc/8.0.2/docs/html/libraries/ghc-8.0.2/HsBinds.html#t:Sig); only TypeSig and InlineSig are handled currently.)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the behavior described in issue #20 and compare handling of local where/let definitions, SPECIALIZE pragmas, fixity declarations, and pattern synonym type signatures. Review the linked HsBinds Sig constructors, especially the currently handled TypeSig and InlineSig cases; done means these constructs no longer produce bad indentation or errors when first in a layout block.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100