Skip to content

Commit 72fc5ab

Browse files
committed
add NFData instances to cabal
1 parent b74bced commit 72fc5ab

File tree

2 files changed

+13
-4
lines changed
  • plugins/hls-cabal-project-plugin/src/Ide/Plugin/CabalProject
  • vendor

2 files changed

+13
-4
lines changed

plugins/hls-cabal-project-plugin/src/Ide/Plugin/CabalProject/Orphans.hs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,21 @@ import GHC.Generics (Generic)
1515
import qualified Distribution.Client.ProjectConfig.Types as PC
1616
import Ide.Plugin.Cabal.Orphans ()
1717

18+
19+
orphans = undefined
1820
-- Project Config Orphans
1921

20-
deriving instance NFData PCPath.ProjectConfigPath
2122

22-
instance NFData PC.ProjectConfig where
23-
rnf !_ = ()
23+
-- more nfdata instances i need:
24+
-- Distribution.Client.Types.SourceRepo.SourceRepositoryPackage []
25+
-- NFData (NubList PathTemplate)
26+
-- NFData (InstallDirs (Flag PathTemplate))
27+
-- NFData (NubList FilePath)
28+
29+
-- deriving instance NFData PCPath.ProjectConfigPath
30+
31+
-- instance NFData PC.ProjectConfig where
32+
-- rnf !_ = ()
2433

2534
-- {-# OPTIONS_GHC -Wno-orphans #-}
2635
-- {-# LANGUAGE FlexibleInstances #-}

vendor/cabal

Submodule cabal updated 28 files

0 commit comments

Comments
 (0)