Skip to content

Commit

Permalink
Move common imports to app-common-depends
Browse files Browse the repository at this point in the history
  • Loading branch information
dfordivam authored and lsmor committed Jun 13, 2024
1 parent 5d46492 commit fe4466a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ghcup.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ common app-common-depends
, haskus-utils-variant ^>=3.3
, megaparsec >=8.0.0 && <9.3
, mtl ^>=2.2
, optics ^>=0.4
, optparse-applicative >=0.15.1.0 && <0.18
, pretty ^>=1.1.3.1
, pretty-terminal ^>=0.1.0.0
Expand All @@ -92,6 +93,7 @@ common app-common-depends
, temporary ^>=1.3
, text ^>=2.0
, time >=1.9.3 && <1.12
, transformers ^>=0.5
, unordered-containers ^>=0.2
, uri-bytestring ^>=0.3.2.2
, utf8-string ^>=1.0
Expand All @@ -109,6 +111,7 @@ common app-common-depends
build-depends: libarchive ^>=3.0.3.0

library
import: app-common-depends
exposed-modules:
GHCup
GHCup.Cabal
Expand Down Expand Up @@ -194,7 +197,6 @@ library
, lzma-static ^>=5.2.5.3
, megaparsec >=8.0.0 && <9.3
, mtl ^>=2.2
, optics ^>=0.4
, os-release ^>=1.0.0
, pretty ^>=1.1.3.1
, pretty-terminal ^>=0.1.0.0
Expand All @@ -209,7 +211,6 @@ library
, temporary ^>=1.3
, text ^>=2.0
, time >=1.9.3 && <1.12
, transformers ^>=0.5
, unliftio-core ^>=0.2.0.1
, unordered-containers ^>=0.2.10.0
, uri-bytestring ^>=0.3.2.2
Expand Down Expand Up @@ -361,9 +362,7 @@ library ghcup-tui

build-depends:
, ghcup
, optics ^>=0.4
, brick ^>=2.1
, transformers ^>=0.5
, vty ^>=6.0 || ^>=6.1 || ^>=6.2

if flag(internal-downloader)
Expand Down Expand Up @@ -411,9 +410,7 @@ executable ghcup
other-modules: BrickMain
build-depends:
, brick ^>=2.1
, transformers ^>=0.5
, vty ^>=6.0 || ^>=6.1 || ^>=6.2
, optics ^>=0.4

if os(windows)
cpp-options: -DIS_WINDOWS
Expand Down

0 comments on commit fe4466a

Please sign in to comment.