2020-01-14 21:55:34 +00:00
|
|
|
cabal-version: 2.2
|
2020-01-11 20:15:05 +00:00
|
|
|
|
|
|
|
name: ghcup
|
|
|
|
version: 0.1.0.0
|
|
|
|
synopsis: ghc toolchain installer as an exe/library
|
2020-01-14 21:55:34 +00:00
|
|
|
description: A rewrite of the shell script ghcup, for providing
|
|
|
|
a more stable user experience and exposing an API.
|
2020-01-11 20:15:05 +00:00
|
|
|
homepage: https://github.com/hasufell/ghcup-hs
|
2020-01-14 21:55:34 +00:00
|
|
|
bug-reports: https://github.com/hasufell/ghcup-hs/issues
|
|
|
|
license: LGPL-3.0-only
|
2020-01-11 20:15:05 +00:00
|
|
|
license-file: LICENSE
|
|
|
|
author: Julian Ospald
|
|
|
|
maintainer: hasufell@posteo.de
|
2020-01-14 21:55:34 +00:00
|
|
|
copyright: Julian Ospald 2020
|
2020-01-11 20:15:05 +00:00
|
|
|
category: System
|
|
|
|
build-type: Simple
|
|
|
|
extra-source-files: CHANGELOG.md
|
|
|
|
|
2020-01-14 21:55:34 +00:00
|
|
|
source-repository head
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasufell/ghcup-hs
|
|
|
|
|
2020-01-17 22:29:16 +00:00
|
|
|
common HsOpenSSL { build-depends: HsOpenSSL >= 0.11 }
|
2020-01-16 22:27:38 +00:00
|
|
|
common aeson { build-depends: aeson >= 1.4 }
|
2020-01-14 21:55:34 +00:00
|
|
|
common ascii-string { build-depends: ascii-string >= 1.0 }
|
2020-01-17 22:29:16 +00:00
|
|
|
common async { build-depends: async >= 0.8 }
|
|
|
|
common base { build-depends: base >= 4.12 && < 5 }
|
2020-01-14 21:55:34 +00:00
|
|
|
common bytestring { build-depends: bytestring >= 0.10 }
|
|
|
|
common containers { build-depends: containers >= 0.6 }
|
|
|
|
common generics-sop { build-depends: generics-sop >= 0.5 }
|
|
|
|
common hpath { build-depends: hpath >= 0.10.1 }
|
|
|
|
common hpath-filepath { build-depends: hpath-filepath >= 0.10 }
|
|
|
|
common hpath-io { build-depends: hpath-io >= 0.10.1 }
|
2020-01-17 22:29:16 +00:00
|
|
|
common http-io-streams { build-depends: http-io-streams >= 0.1 }
|
|
|
|
common io-streams { build-depends: io-streams >= 1.5 }
|
2020-01-14 21:55:34 +00:00
|
|
|
common language-bash { build-depends: language-bash >= 0.9 }
|
2020-01-17 22:29:16 +00:00
|
|
|
common mtl { build-depends: mtl >= 2.2 }
|
2020-01-14 21:55:34 +00:00
|
|
|
common optics { build-depends: optics >= 0.2 }
|
|
|
|
common parsec { build-depends: parsec >= 3.1 }
|
|
|
|
common safe-exceptions { build-depends: safe-exceptions >= 0.1 }
|
|
|
|
common streamly { build-depends: streamly >= 0.7 }
|
|
|
|
common strict-base { build-depends: strict-base >= 0.4 }
|
|
|
|
common template-haskell { build-depends: template-haskell >= 2.7 }
|
|
|
|
common text { build-depends: text >= 1.2 }
|
2020-01-16 22:27:38 +00:00
|
|
|
common text-icu { build-depends: text-icu >= 0.7 }
|
2020-01-14 21:55:34 +00:00
|
|
|
common transformers { build-depends: transformers >= 0.5 }
|
|
|
|
common unix { build-depends: unix >= 2.7 }
|
2020-01-17 22:29:16 +00:00
|
|
|
common unix-bytestring { build-depends: unix-bytestring >= 0.3 }
|
2020-01-14 21:55:34 +00:00
|
|
|
common url { build-depends: url >= 2.1 }
|
|
|
|
common utf8-string { build-depends: utf8-string >= 1.0 }
|
|
|
|
common vector { build-depends: vector >= 0.12 }
|
2020-01-16 22:27:38 +00:00
|
|
|
common versions { build-depends: versions >= 3.5 }
|
2020-01-17 22:29:16 +00:00
|
|
|
common waargonaut { build-depends: waargonaut >= 0.8 }
|
2020-01-14 21:55:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
common config
|
|
|
|
default-language: Haskell2010
|
|
|
|
ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -O2 -fspec-constr-recursive=16 -fmax-worker-args=16
|
2020-01-17 22:29:16 +00:00
|
|
|
default-extensions: LambdaCase
|
|
|
|
, MultiWayIf
|
|
|
|
, PackageImports
|
|
|
|
, RecordWildCards
|
|
|
|
, ScopedTypeVariables
|
|
|
|
, StrictData
|
|
|
|
, Strict
|
|
|
|
, TupleSections
|
2020-01-14 21:55:34 +00:00
|
|
|
|
2020-01-11 20:15:05 +00:00
|
|
|
library
|
2020-01-14 21:55:34 +00:00
|
|
|
import: config
|
|
|
|
, base
|
|
|
|
-- deps
|
2020-01-17 22:29:16 +00:00
|
|
|
, HsOpenSSL
|
2020-01-16 22:27:38 +00:00
|
|
|
, aeson
|
2020-01-14 21:55:34 +00:00
|
|
|
, ascii-string
|
2020-01-16 22:27:38 +00:00
|
|
|
, async
|
2020-01-14 21:55:34 +00:00
|
|
|
, bytestring
|
|
|
|
, containers
|
|
|
|
, generics-sop
|
|
|
|
, hpath
|
|
|
|
, hpath-filepath
|
|
|
|
, hpath-io
|
2020-01-17 22:29:16 +00:00
|
|
|
, http-io-streams
|
|
|
|
, io-streams
|
2020-01-14 21:55:34 +00:00
|
|
|
, language-bash
|
2020-01-16 22:27:38 +00:00
|
|
|
, mtl
|
2020-01-14 21:55:34 +00:00
|
|
|
, optics
|
|
|
|
, parsec
|
|
|
|
, safe-exceptions
|
|
|
|
, streamly
|
|
|
|
, strict-base
|
|
|
|
, template-haskell
|
|
|
|
, text
|
2020-01-16 22:27:38 +00:00
|
|
|
, text-icu
|
2020-01-14 21:55:34 +00:00
|
|
|
, transformers
|
|
|
|
, unix
|
2020-01-17 22:29:16 +00:00
|
|
|
, unix-bytestring
|
2020-01-14 21:55:34 +00:00
|
|
|
, url
|
|
|
|
, utf8-string
|
|
|
|
, vector
|
2020-01-16 22:27:38 +00:00
|
|
|
, versions
|
2020-01-14 21:55:34 +00:00
|
|
|
exposed-modules: GHCup
|
|
|
|
GHCup.Bash
|
|
|
|
GHCup.File
|
|
|
|
GHCup.Prelude
|
|
|
|
GHCup.Types
|
|
|
|
GHCup.Types.JSON
|
|
|
|
GHCup.Types.Optics
|
|
|
|
other-modules: Streamly.ByteString
|
2020-01-11 20:15:05 +00:00
|
|
|
-- other-extensions:
|
|
|
|
hs-source-dirs: lib
|
|
|
|
|
|
|
|
executable ghcup
|
2020-01-14 21:55:34 +00:00
|
|
|
import: config
|
|
|
|
, base
|
2020-01-11 20:15:05 +00:00
|
|
|
main-is: Main.hs
|
|
|
|
-- other-modules:
|
|
|
|
-- other-extensions:
|
2020-01-14 21:55:34 +00:00
|
|
|
build-depends: ghcup
|
2020-01-11 20:15:05 +00:00
|
|
|
hs-source-dirs: app
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
test-suite ghcup-test
|
|
|
|
default-language: Haskell2010
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
hs-source-dirs: test
|
|
|
|
main-is: MyLibTest.hs
|
|
|
|
build-depends: base ^>=4.12.0.0
|