Skip to content

Commit ccf3487

Browse files
committed
Fix haskell#3574 and support resolve in explicit records
1 parent 6bb1da8 commit ccf3487

File tree

3 files changed

+133
-134
lines changed

3 files changed

+133
-134
lines changed

ghcide/src/Development/IDE/GHC/Orphans.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ import Data.Hashable
3939
import Data.String (IsString (fromString))
4040
import Data.Text (unpack)
4141
#if MIN_VERSION_ghc(9,0,0)
42+
import GHC (ModuleGraph)
4243
import GHC.ByteCode.Types
43-
import GHC (ModuleGraph)
4444
#else
4545
import ByteCodeTypes
4646
#endif
@@ -244,5 +244,8 @@ instance NFData HomeModLinkable where
244244
instance NFData (HsExpr (GhcPass 'Renamed)) where
245245
rnf = rwhnf
246246

247+
instance NFData (Pat (GhcPass 'Renamed)) where
248+
rnf = rwhnf
249+
247250
instance NFData Extension where
248251
rnf = rwhnf

plugins/hls-explicit-record-fields-plugin/hls-explicit-record-fields-plugin.cabal

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ source-repository head
1919
type: git
2020
location: https://github.com/haskell/haskell-language-server
2121

22+
flag pedantic
23+
description: Enable -Werror
24+
default: False
25+
manual: True
26+
2227
common warnings
2328
ghc-options: -Wall
2429

@@ -40,9 +45,13 @@ library
4045
, ghc-boot-th
4146
, unordered-containers
4247
, containers
48+
, aeson
4349
hs-source-dirs: src
4450
default-language: Haskell2010
4551

52+
if flag(pedantic)
53+
ghc-options: -Werror
54+
4655
test-suite tests
4756
import: warnings
4857
default-language: Haskell2010

0 commit comments

Comments
 (0)