haskell / haskell/error-messages

Should suggest to turn on PatternSynonyms on pattern import

Open
#25 3 comments 6 reactions 0 assignees View on GitHub
status:Composing error message tool:GHC type:error-message
Dominant language
No language data
Stars
76
Forks
19
PR merge metrics
No merged PRs in 30d

Description

I would expect to receive the suggestion "perhaps you meant to enable PatternSynonyms" in the first case.

```
> import Control.Exception (pattern ErrorCall)
:1:35: error: parse error on input ‘ErrorCall’
> :set -XPatternSynonyms
> import Control.Exception (pattern ErrorCall)
```

(GHC 8.10.7)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.