This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Add 'Add EmptyDataDecls' code action #1183
Closed
Description
Given the below code, GHC suggests turning on EmptyDataDecls
:
data Foo
The error message from GHC looks like ‘Foo’ has no constructors (EmptyDataDecls permits this)
It would be great to have this as a code action.
See also #890
Activity
fendor commentedon Apr 20, 2019
Looks like this is a single line change in
Pragmas.hs
, adding"EmptyDataDecls"
to line 96.fendor commentedon Apr 20, 2019
Actually, that just compiles for me on ghc-8.2.2, what ghc version is that for?
expipiplus1 commentedon Apr 21, 2019
@fendor I'm using ghc 8.6.4
fendor commentedon Apr 21, 2019
Still just compiles for me. Very weird.
fendor commentedon Apr 21, 2019
@expipiplus1 Can you check whether #1187 solves your issue? Because, I can not reproduce that problem at all.
expipiplus1 commentedon Apr 22, 2019
#1187 works perfectly, ++@fendor!