Core lint error on record syntax update/pattern synonym
While on a flight I discovered some errors, if you load a file using record syntax for pattern synonyms:
module Foo where
pattern Pair{x, y} = (x, y)
and load it with -dcore-lint
:
$ ghci -dcore-lint -ignore-dot-ghci -XPatternSynonyms /tmp/Foo.hs
GHCi, version 8.1.20160419: http://www.haskell.org/ghc/ :? for help
[1 of 1] Compiling Foo ( /tmp/Foo.hs, interpreted )
Ok, modules loaded: Foo.
*Foo> (1, 2) { x = 10 }
*** Core Lint errors : in result of desugar expression ***
[...]
full error message attached.
Trac metadata
Trac field | Value |
---|---|
Version | 8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |