Skip to content

Commit 92d5cf2

Browse files
committed
extract ghcide:experiments-types
1 parent 55d9024 commit 92d5cf2

File tree

2 files changed

+37
-6
lines changed

2 files changed

+37
-6
lines changed

ghcide/bench/lib/Experiments/Types.hs renamed to ghcide/bench/types/Experiments/Types.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
{-# LANGUAGE OverloadedStrings #-}
44
module Experiments.Types (module Experiments.Types ) where
55

6+
import Control.DeepSeq
67
import Data.Aeson
8+
import Data.Binary (Binary)
9+
import Data.Hashable (Hashable)
710
import Data.Maybe (fromMaybe)
811
import Data.Version
9-
import Development.Shake.Classes
1012
import GHC.Generics
1113
import Numeric.Natural
1214

ghcide/ghcide.cabal

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cabal-version: 2.4
1+
cabal-version: 3.0
22
build-type: Simple
33
category: Development
44
name: ghcide
@@ -272,8 +272,7 @@ benchmark benchHist
272272
default-language: Haskell2010
273273
ghc-options: -Wall -Wno-name-shadowing -threaded
274274
main-is: Main.hs
275-
hs-source-dirs: bench/hist bench/lib
276-
other-modules: Experiments.Types
275+
hs-source-dirs: bench/hist
277276
build-tool-depends:
278277
ghcide:ghcide-bench,
279278
hp2pretty:hp2pretty,
@@ -300,6 +299,7 @@ benchmark benchHist
300299
directory,
301300
extra,
302301
filepath,
302+
ghcide:experiments-types,
303303
lens,
304304
optparse-applicative,
305305
shake,
@@ -310,6 +310,35 @@ flag executable
310310
description: Build the ghcide executable
311311
default: True
312312

313+
library experiments-types
314+
default-language: Haskell2010
315+
visibility: public
316+
hs-source-dirs: bench/types
317+
ghc-options: -Wall -Wno-name-shadowing
318+
exposed-modules:
319+
Experiments.Types
320+
build-depends:
321+
aeson,
322+
base == 4.*,
323+
binary,
324+
deepseq,
325+
hashable,
326+
default-extensions:
327+
BangPatterns
328+
DeriveFunctor
329+
DeriveGeneric
330+
FlexibleContexts
331+
GeneralizedNewtypeDeriving
332+
LambdaCase
333+
NamedFieldPuns
334+
RecordWildCards
335+
ScopedTypeVariables
336+
StandaloneDeriving
337+
TupleSections
338+
TypeApplications
339+
ViewPatterns
340+
341+
313342
executable ghcide
314343
default-language: Haskell2010
315344
hs-source-dirs: exe
@@ -406,6 +435,7 @@ test-suite ghcide-tests
406435
ghc,
407436
--------------------------------------------------------------
408437
ghcide,
438+
ghcide:experiments-types,
409439
ghc-typelits-knownnat,
410440
haddock-library,
411441
lsp,
@@ -451,7 +481,6 @@ test-suite ghcide-tests
451481
Development.IDE.Test.Diagnostic
452482
Development.IDE.Test.Runfiles
453483
Experiments
454-
Experiments.Types
455484
FuzzySearch
456485
Progress
457486
HieDbRetry
@@ -489,6 +518,7 @@ executable ghcide-bench
489518
extra,
490519
filepath,
491520
ghcide,
521+
ghcide:experiments-types,
492522
hls-plugin-api,
493523
lens,
494524
lsp-test,
@@ -507,7 +537,6 @@ executable ghcide-bench
507537
Development.IDE.Test
508538
Development.IDE.Test.Diagnostic
509539
Experiments
510-
Experiments.Types
511540
default-extensions:
512541
BangPatterns
513542
DeriveFunctor

0 commit comments

Comments
 (0)