2021-04-09 17:18:44 +00:00
|
|
|
cabal-version: 3.0
|
|
|
|
name: ghcup
|
2021-05-12 11:19:26 +00:00
|
|
|
version: 0.1.14.2
|
2021-04-09 17:18:44 +00:00
|
|
|
license: LGPL-3.0-only
|
|
|
|
license-file: LICENSE
|
|
|
|
copyright: Julian Ospald 2020
|
|
|
|
maintainer: hasufell@posteo.de
|
|
|
|
author: Julian Ospald
|
|
|
|
homepage: https://gitlab.haskell.org/haskell/ghcup-hs
|
|
|
|
bug-reports: https://gitlab.haskell.org/haskell/ghcup-hs/issues
|
2021-04-11 16:14:52 +00:00
|
|
|
synopsis: ghc toolchain installer
|
2020-03-24 15:49:18 +00:00
|
|
|
description:
|
|
|
|
A rewrite of the shell script ghcup, for providing
|
|
|
|
a more stable user experience and exposing an API.
|
|
|
|
|
2021-04-09 17:18:44 +00:00
|
|
|
category: System
|
|
|
|
build-type: Simple
|
2021-04-25 15:22:07 +00:00
|
|
|
extra-doc-files:
|
|
|
|
CHANGELOG.md
|
|
|
|
config.yaml
|
|
|
|
ghcup-0.0.4.yaml
|
|
|
|
HACKING.md
|
|
|
|
README.md
|
|
|
|
RELEASING.md
|
2020-01-11 20:15:05 +00:00
|
|
|
|
|
|
|
source-repository head
|
2020-03-24 15:49:18 +00:00
|
|
|
type: git
|
2020-04-14 23:04:58 +00:00
|
|
|
location: https://gitlab.haskell.org/haskell/ghcup-hs.git
|
2020-01-11 20:15:05 +00:00
|
|
|
|
2020-07-06 20:39:16 +00:00
|
|
|
flag tui
|
|
|
|
description: Build the brick powered tui (ghcup tui)
|
|
|
|
default: False
|
|
|
|
manual: True
|
|
|
|
|
2020-04-28 15:56:39 +00:00
|
|
|
flag internal-downloader
|
2021-04-09 17:18:44 +00:00
|
|
|
description:
|
|
|
|
Compile the internal downloader, which links against OpenSSL
|
|
|
|
|
2020-04-09 14:59:25 +00:00
|
|
|
default: False
|
|
|
|
manual: True
|
|
|
|
|
2020-07-12 20:29:50 +00:00
|
|
|
flag tar
|
|
|
|
description: Use tar-bytestring instead of libarchive
|
|
|
|
default: False
|
|
|
|
manual: True
|
|
|
|
|
2020-01-11 20:15:05 +00:00
|
|
|
library
|
2020-03-24 15:49:18 +00:00
|
|
|
exposed-modules:
|
|
|
|
GHCup
|
|
|
|
GHCup.Download
|
2020-04-09 14:59:25 +00:00
|
|
|
GHCup.Download.Utils
|
2020-03-24 15:49:18 +00:00
|
|
|
GHCup.Errors
|
|
|
|
GHCup.Platform
|
2020-04-10 15:36:27 +00:00
|
|
|
GHCup.Requirements
|
2020-03-24 15:49:18 +00:00
|
|
|
GHCup.Types
|
|
|
|
GHCup.Types.JSON
|
|
|
|
GHCup.Types.Optics
|
|
|
|
GHCup.Utils
|
|
|
|
GHCup.Utils.Dirs
|
|
|
|
GHCup.Utils.File
|
|
|
|
GHCup.Utils.Logger
|
2020-04-25 10:06:41 +00:00
|
|
|
GHCup.Utils.MegaParsec
|
2020-03-24 15:49:18 +00:00
|
|
|
GHCup.Utils.Prelude
|
|
|
|
GHCup.Utils.String.QQ
|
|
|
|
GHCup.Utils.Version.QQ
|
|
|
|
GHCup.Version
|
|
|
|
|
2021-04-09 17:18:44 +00:00
|
|
|
hs-source-dirs: lib
|
|
|
|
other-modules: Paths_ghcup
|
|
|
|
autogen-modules: Paths_ghcup
|
|
|
|
default-language: Haskell2010
|
2020-09-13 18:46:34 +00:00
|
|
|
default-extensions:
|
2021-04-09 17:18:44 +00:00
|
|
|
LambdaCase
|
|
|
|
MultiWayIf
|
|
|
|
PackageImports
|
|
|
|
RecordWildCards
|
|
|
|
ScopedTypeVariables
|
2020-09-13 18:46:34 +00:00
|
|
|
Strict
|
|
|
|
StrictData
|
2021-04-09 17:18:44 +00:00
|
|
|
TupleSections
|
|
|
|
|
|
|
|
ghc-options:
|
|
|
|
-Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
|
|
|
|
-fwarn-incomplete-record-updates
|
2020-09-13 18:46:34 +00:00
|
|
|
|
2021-04-09 17:18:44 +00:00
|
|
|
build-depends:
|
|
|
|
, aeson >=1.4 && <1.6
|
|
|
|
, async >=0.8 && <2.3
|
|
|
|
, base >=4.13 && <5
|
|
|
|
, base16-bytestring >=0.1.1.6 && <1.1
|
|
|
|
, binary ^>=0.8.6.0
|
|
|
|
, bytestring ^>=0.10
|
|
|
|
, bz2 >=0.5.0.5 && <1.1
|
|
|
|
, case-insensitive ^>=1.2.1.0
|
|
|
|
, casing ^>=0.1.4.1
|
|
|
|
, concurrent-output ^>=1.10.11
|
|
|
|
, containers ^>=0.6
|
|
|
|
, cryptohash-sha256 ^>=0.11.101.0
|
2021-04-25 15:22:07 +00:00
|
|
|
, disk-free-space ^>=0.1.0.1
|
2021-04-09 17:18:44 +00:00
|
|
|
, generics-sop ^>=0.5
|
|
|
|
, haskus-utils-types ^>=1.5
|
|
|
|
, haskus-utils-variant >=3.0 && <3.2
|
|
|
|
, hpath >=0.11 && <0.13
|
|
|
|
, hpath-directory ^>=0.14.1
|
|
|
|
, hpath-filepath ^>=0.10.3
|
|
|
|
, hpath-io ^>=0.14.1
|
|
|
|
, hpath-posix ^>=0.13.2
|
2021-04-11 14:31:44 +00:00
|
|
|
, lzma-static ^>=5.2.5.2
|
2021-04-09 17:18:44 +00:00
|
|
|
, megaparsec >=8.0.0 && <9.1
|
|
|
|
, monad-logger ^>=0.3.31
|
|
|
|
, mtl ^>=2.2
|
|
|
|
, optics >=0.2 && <0.5
|
|
|
|
, optics-vl ^>=0.2
|
|
|
|
, os-release ^>=1.0.0
|
|
|
|
, parsec ^>=3.1
|
|
|
|
, pretty ^>=1.1.3.1
|
|
|
|
, pretty-terminal ^>=0.1.0.0
|
|
|
|
, regex-posix ^>=0.96
|
|
|
|
, resourcet ^>=1.2.2
|
|
|
|
, safe ^>=0.3.18
|
|
|
|
, safe-exceptions ^>=0.1
|
|
|
|
, split ^>=0.2.3.4
|
|
|
|
, streamly ^>=0.7.3
|
|
|
|
, streamly-bytestring ^>=0.1.2
|
|
|
|
, streamly-posix ^>=0.1.0.0
|
|
|
|
, strict-base ^>=0.4
|
|
|
|
, string-interpolate >=0.2.0.0 && <0.4
|
|
|
|
, template-haskell >=2.7 && <2.17
|
|
|
|
, text ^>=1.2.4.0
|
|
|
|
, time ^>=1.9.3
|
|
|
|
, transformers ^>=0.5
|
|
|
|
, unix ^>=2.7
|
|
|
|
, unix-bytestring ^>=0.3
|
2021-04-25 15:22:07 +00:00
|
|
|
, unliftio-core ^>=0.2.0.1
|
2021-04-09 17:18:44 +00:00
|
|
|
, unordered-containers ^>=0.2.10.0
|
|
|
|
, uri-bytestring ^>=0.3.2.2
|
|
|
|
, utf8-string ^>=1.0
|
|
|
|
, vector ^>=0.12
|
|
|
|
, versions ^>=4.0.1
|
|
|
|
, vty >=5.28.2 && <5.34
|
|
|
|
, word8 ^>=0.1.3
|
|
|
|
, yaml ^>=0.11.4.0
|
|
|
|
, zlib ^>=0.6.2.2
|
2020-01-11 20:15:05 +00:00
|
|
|
|
2020-04-28 15:56:39 +00:00
|
|
|
if flag(internal-downloader)
|
2020-04-09 14:59:25 +00:00
|
|
|
exposed-modules: GHCup.Download.IOStreams
|
2020-04-28 15:56:39 +00:00
|
|
|
cpp-options: -DINTERNAL_DOWNLOADER
|
2021-04-09 17:18:44 +00:00
|
|
|
build-depends:
|
|
|
|
, HsOpenSSL >=0.11.4.18
|
|
|
|
, http-io-streams >=0.1.2.0
|
|
|
|
, io-streams >=1.5
|
|
|
|
, terminal-progress-bar >=0.4.1
|
2020-04-09 14:59:25 +00:00
|
|
|
|
2020-07-12 20:29:50 +00:00
|
|
|
if flag(tar)
|
2021-04-09 17:18:44 +00:00
|
|
|
cpp-options: -DTAR
|
2021-04-09 17:39:14 +00:00
|
|
|
build-depends: tar-bytestring ^>=0.6.3.1
|
2021-04-09 17:18:44 +00:00
|
|
|
|
2020-07-12 20:29:50 +00:00
|
|
|
else
|
2021-04-09 17:18:44 +00:00
|
|
|
build-depends: libarchive ^>=3.0.0.0
|
2020-07-12 20:29:50 +00:00
|
|
|
|
2020-01-11 20:15:05 +00:00
|
|
|
executable ghcup
|
2021-04-09 17:18:44 +00:00
|
|
|
main-is: Main.hs
|
|
|
|
hs-source-dirs: app/ghcup
|
|
|
|
default-language: Haskell2010
|
2020-09-13 18:46:34 +00:00
|
|
|
default-extensions:
|
2021-04-09 17:18:44 +00:00
|
|
|
LambdaCase
|
|
|
|
MultiWayIf
|
|
|
|
PackageImports
|
|
|
|
RecordWildCards
|
|
|
|
ScopedTypeVariables
|
2020-09-13 18:46:34 +00:00
|
|
|
Strict
|
|
|
|
StrictData
|
2021-04-09 17:18:44 +00:00
|
|
|
TupleSections
|
|
|
|
|
|
|
|
ghc-options:
|
|
|
|
-Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
|
|
|
|
-fwarn-incomplete-record-updates -threaded
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
, aeson >=1.4 && <1.6
|
|
|
|
, base >=4.13 && <5
|
|
|
|
, bytestring ^>=0.10
|
|
|
|
, containers ^>=0.6
|
|
|
|
, ghcup
|
|
|
|
, haskus-utils-variant >=3.0 && <3.2
|
|
|
|
, hpath >=0.11 && <0.13
|
|
|
|
, hpath-io ^>=0.14.1
|
|
|
|
, megaparsec >=8.0.0 && <9.1
|
|
|
|
, monad-logger ^>=0.3.31
|
|
|
|
, mtl ^>=2.2
|
|
|
|
, optparse-applicative >=0.15.1.0 && <0.17
|
|
|
|
, pretty ^>=1.1.3.1
|
|
|
|
, pretty-terminal ^>=0.1.0.0
|
|
|
|
, resourcet ^>=1.2.2
|
|
|
|
, safe ^>=0.3.18
|
|
|
|
, safe-exceptions ^>=0.1
|
|
|
|
, string-interpolate >=0.2.0.0 && <0.4
|
|
|
|
, template-haskell >=2.7 && <2.17
|
|
|
|
, text ^>=1.2.4.0
|
|
|
|
, uri-bytestring ^>=0.3.2.2
|
|
|
|
, utf8-string ^>=1.0
|
|
|
|
, versions ^>=4.0.1
|
2020-09-13 18:46:34 +00:00
|
|
|
|
2020-04-29 17:12:58 +00:00
|
|
|
if flag(internal-downloader)
|
2021-04-09 17:18:44 +00:00
|
|
|
cpp-options: -DINTERNAL_DOWNLOADER
|
2020-04-29 17:12:58 +00:00
|
|
|
|
2020-07-06 20:39:16 +00:00
|
|
|
if flag(tui)
|
2021-04-09 17:18:44 +00:00
|
|
|
cpp-options: -DBRICK
|
2020-07-06 20:39:16 +00:00
|
|
|
other-modules: BrickMain
|
2021-04-09 17:18:44 +00:00
|
|
|
build-depends:
|
2021-04-09 17:39:14 +00:00
|
|
|
, brick >=0.5 && <0.62
|
|
|
|
, vector ^>=0.12
|
|
|
|
, vty >=5.28.2 && <5.34
|
2020-04-29 17:12:58 +00:00
|
|
|
|
2020-07-12 20:29:50 +00:00
|
|
|
if flag(tar)
|
2021-04-09 17:18:44 +00:00
|
|
|
cpp-options: -DTAR
|
|
|
|
|
2020-07-12 20:29:50 +00:00
|
|
|
else
|
2021-04-09 17:18:44 +00:00
|
|
|
build-depends: libarchive ^>=3.0.0.0
|
|
|
|
|
|
|
|
executable ghcup-gen
|
|
|
|
main-is: Main.hs
|
|
|
|
hs-source-dirs: app/ghcup-gen
|
|
|
|
other-modules: Validate
|
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions:
|
|
|
|
LambdaCase
|
|
|
|
MultiWayIf
|
|
|
|
PackageImports
|
|
|
|
RecordWildCards
|
|
|
|
ScopedTypeVariables
|
|
|
|
TupleSections
|
2020-07-12 20:29:50 +00:00
|
|
|
|
2021-04-09 17:13:36 +00:00
|
|
|
ghc-options:
|
2021-04-09 17:18:44 +00:00
|
|
|
-Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
|
|
|
|
-fwarn-incomplete-record-updates -threaded
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
, aeson >=1.4 && <1.6
|
|
|
|
, aeson-pretty ^>=0.8.8
|
|
|
|
, base >=4.13 && <5
|
|
|
|
, bytestring ^>=0.10
|
|
|
|
, containers ^>=0.6
|
|
|
|
, ghcup
|
|
|
|
, haskus-utils-variant >=3.0 && <3.2
|
|
|
|
, hpath >=0.11 && <0.13
|
|
|
|
, hpath-filepath ^>=0.10.3
|
|
|
|
, monad-logger ^>=0.3.31
|
|
|
|
, mtl ^>=2.2
|
|
|
|
, optics >=0.2 && <0.5
|
|
|
|
, optparse-applicative >=0.15.1.0 && <0.17
|
|
|
|
, pretty ^>=1.1.3.1
|
|
|
|
, pretty-terminal ^>=0.1.0.0
|
|
|
|
, regex-posix ^>=0.96
|
|
|
|
, resourcet ^>=1.2.2
|
|
|
|
, safe-exceptions ^>=0.1
|
|
|
|
, string-interpolate >=0.2.0.0 && <0.4
|
|
|
|
, text ^>=1.2.4.0
|
|
|
|
, transformers ^>=0.5
|
|
|
|
, uri-bytestring ^>=0.3.2.2
|
|
|
|
, utf8-string ^>=1.0
|
|
|
|
, versions ^>=4.0.1
|
|
|
|
, yaml ^>=0.11.4.0
|
2021-04-09 17:13:36 +00:00
|
|
|
|
2021-04-09 17:18:44 +00:00
|
|
|
if flag(tar)
|
|
|
|
cpp-options: -DTAR
|
2021-04-09 17:39:14 +00:00
|
|
|
build-depends: tar-bytestring ^>=0.6.3.1
|
|
|
|
|
|
|
|
else
|
|
|
|
build-depends: libarchive ^>=3.0.0.0
|
2020-03-24 15:49:18 +00:00
|
|
|
|
2021-04-09 17:18:44 +00:00
|
|
|
test-suite ghcup-test
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Main.hs
|
|
|
|
hs-source-dirs: test
|
2020-04-10 15:36:27 +00:00
|
|
|
other-modules:
|
2021-04-09 17:18:44 +00:00
|
|
|
GHCup.ArbitraryTypes
|
|
|
|
GHCup.Types.JSONSpec
|
|
|
|
Spec
|
2020-03-24 15:49:18 +00:00
|
|
|
|
2021-04-09 17:18:44 +00:00
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions:
|
|
|
|
LambdaCase
|
|
|
|
MultiWayIf
|
|
|
|
PackageImports
|
|
|
|
RecordWildCards
|
|
|
|
ScopedTypeVariables
|
|
|
|
TupleSections
|
2021-04-02 14:54:27 +00:00
|
|
|
|
2021-04-09 17:13:36 +00:00
|
|
|
ghc-options:
|
2021-04-09 17:18:44 +00:00
|
|
|
-Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
|
|
|
|
-fwarn-incomplete-record-updates
|
2021-04-09 17:13:36 +00:00
|
|
|
|
2021-04-09 17:18:44 +00:00
|
|
|
build-depends:
|
|
|
|
, base >=4.13 && <5
|
|
|
|
, bytestring ^>=0.10
|
|
|
|
, containers ^>=0.6
|
|
|
|
, generic-arbitrary ^>=0.1.0
|
|
|
|
, ghcup
|
|
|
|
, hpath >=0.11 && <0.13
|
|
|
|
, hspec ^>=2.7.4
|
|
|
|
, hspec-golden-aeson >=0.7 && <0.10
|
|
|
|
, QuickCheck ^>=2.14.1
|
|
|
|
, quickcheck-arbitrary-adt ^>=0.3.1.0
|
|
|
|
, text ^>=1.2.4.0
|
|
|
|
, uri-bytestring ^>=0.3.2.2
|
|
|
|
, versions ^>=4.0.1
|