stack/cabal cleanups; drop GHC 7.6, 7.8 support

A (disabled) stack build plan for GHC 7.8 is included; supporting it
would need small code changes and a maintainer.
This commit is contained in:
Simon Michael 2016-10-21 14:47:22 -07:00
parent 275f98b3be
commit 5aa4c91332
14 changed files with 86 additions and 56 deletions

View File

@ -1,17 +1,21 @@
#!/usr/bin/env bash
# Run this script to install all hledger packages using cabal
# (if you prefer using cabal to stack)
# Install all hledger packages using cabal (if you prefer it to stack).
# cabal.project may be a newer way.
# make a sandbox in this directory to avoid build problems
# Make a local sandbox - optional, recommended for reliable installs
cabal sandbox init
# might be useful for some developers..
cabal sandbox add-source ./hledger-lib
cabal sandbox add-source ./hledger
cabal sandbox add-source ./hledger-ui
cabal sandbox add-source ./hledger-web
cabal sandbox add-source ./hledger-api
# Tell sandbox about the local packages, recommended for developers
#cabal sandbox add-source ./hledger-lib
#cabal sandbox add-source ./hledger
#cabal sandbox add-source ./hledger-ui
#cabal sandbox add-source ./hledger-web
#cabal sandbox add-source ./hledger-api
# build and install
cabal install ./hledger-lib ./hledger ./hledger-ui ./hledger-web ./hledger-api \
&& echo "hledger executables successfully installed in ./.cabal-sandbox/bin"
# Build and install to ./cabal-sandbox-bin (or ~/.cabal/bin without a sandbox)
cabal install \
./hledger-lib \
./hledger \
./hledger-ui \
./hledger-web \
./hledger-api \

View File

@ -23,7 +23,7 @@ homepage: http://hledger.org
bug-reports: http://bugs.hledger.org
cabal-version: >= 1.10
build-type: Simple
tested-with: GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0
tested-with: GHC==7.10.3, GHC==8.0
extra-source-files:
CHANGES

View File

@ -160,4 +160,4 @@ tests:
dependencies:
- time >=1.5
stability: stable
tested-with: GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0
tested-with: GHC==7.10.3, GHC==8.0

View File

@ -25,7 +25,7 @@ homepage: http://hledger.org
bug-reports: http://bugs.hledger.org
cabal-version: >= 1.10
build-type: Simple
tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0
tested-with: GHC==7.10.3, GHC==8.0
extra-source-files:
CHANGES

View File

@ -98,4 +98,4 @@ executables:
dependencies:
- time >= 1.5
stability : beta
tested-with : GHC==7.8.4, GHC==7.10.3, GHC==8.0
tested-with : GHC==7.10.3, GHC==8.0

View File

@ -25,7 +25,7 @@ homepage: http://hledger.org
bug-reports: http://bugs.hledger.org
cabal-version: >= 1.10
build-type: Simple
tested-with: GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0
tested-with: GHC==7.10.3, GHC==8.0
extra-source-files:
CHANGES

View File

@ -185,4 +185,4 @@ tests:
dependencies:
- ghc-prim
stability: stable
tested-with: GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0
tested-with: GHC==7.10.3, GHC==8.0

View File

@ -25,7 +25,7 @@ homepage: http://hledger.org
bug-reports: http://bugs.hledger.org
cabal-version: >= 1.10
build-type: Simple
tested-with: GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0
tested-with: GHC==7.10.3, GHC==8.0
extra-source-files:
bench/10000x1000x10.journal

View File

@ -269,4 +269,4 @@ benchmarks:
dependencies:
- time >=1.5
stability: stable
tested-with: GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0
tested-with: GHC==7.10.3, GHC==8.0

15
stack-ghc7.10.yaml Normal file
View File

@ -0,0 +1,15 @@
# Last-tested stack build plan using GHC 7.10.3.
# Older/newer snapshots in this series will likely work also.
resolver: lts-6.22
packages:
- hledger-lib
- hledger
- hledger-ui
- hledger-web
- hledger-api
extra-deps:
- brick-0.8
- megaparsec-5.0.1

25
stack-ghc7.8.yaml.old Normal file
View File

@ -0,0 +1,25 @@
# GHC 7.8 support has bitrotted; patches welcome.
# stack build plan WIP:
#resolver: lts-2.22
#
#packages:
#- hledger-lib
##- hledger
##- hledger-ui
##- hledger-web
##- hledger-api
#
#extra-deps:
#- base-compat-0.8.1
#- time-1.5
#- megaparsec-5.0.1
#- uglymemo-0.1.0.1
#- fail-4.9.0.0
#- semigroups-0.18.2
#- transformers-0.4.1.0
#- transformers-compat-0.4.0.4
#- mtl-2.2.1
#- mtl-compat-0.2.1.3
##- brick-0.8

View File

@ -1,17 +0,0 @@
# Use this config if you prefer to build with GHC 7 & stackage lts-6
# for some reason.
# $ stack --stack-yaml stack-ghc7.yaml install
# Some older and newer lts-6 snapshots will also work here.
resolver: lts-6.22
packages:
- hledger-lib
- hledger
- hledger-ui
- hledger-web
- hledger-api
extra-deps:
- brick-0.8
- megaparsec-5.0.1

21
stack-ghc8.0.yaml Normal file
View File

@ -0,0 +1,21 @@
# Last-tested stack build plan using GHC 8.0.
# Older/newer snapshots in this series will likely work also.
resolver: lts-7.4
packages:
- hledger-lib
- hledger
- hledger-ui
- hledger-web
- hledger-api
extra-deps:
# for hledger-ui:
- brick-0.8
- text-zipper-0.4
- vty-5.7.1
# for hledger-web:
- wai-handler-launch-3.0.2.1
# cf https://github.com/commercialhaskell/stack/wiki/stack.yaml

View File

@ -1,19 +0,0 @@
# some older and newer lts-7 snapshots will also work here
resolver: lts-7.4
packages:
- hledger-lib
- hledger
- hledger-ui
- hledger-web
- hledger-api
extra-deps:
# for hledger-ui:
- brick-0.8
- text-zipper-0.4
- vty-5.7.1
# for hledger-web:
- wai-handler-launch-3.0.2.1
# cf https://github.com/commercialhaskell/stack/wiki/stack.yaml

1
stack.yaml Symbolic link
View File

@ -0,0 +1 @@
stack-ghc8.0.yaml