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:
		
							parent
							
								
									275f98b3be
								
							
						
					
					
						commit
						5aa4c91332
					
				| @ -1,17 +1,21 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| # Run this script to install all hledger packages using cabal | # Install all hledger packages using cabal (if you prefer it to stack). | ||||||
| # (if you prefer using cabal 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 | cabal sandbox init | ||||||
| 
 | 
 | ||||||
| # might be useful for some developers.. | # Tell sandbox about the local packages, recommended for developers | ||||||
| cabal sandbox add-source ./hledger-lib | #cabal sandbox add-source ./hledger-lib | ||||||
| cabal sandbox add-source ./hledger | #cabal sandbox add-source ./hledger | ||||||
| cabal sandbox add-source ./hledger-ui | #cabal sandbox add-source ./hledger-ui | ||||||
| cabal sandbox add-source ./hledger-web | #cabal sandbox add-source ./hledger-web | ||||||
| cabal sandbox add-source ./hledger-api | #cabal sandbox add-source ./hledger-api | ||||||
| 
 | 
 | ||||||
| # build and install | # Build and install to ./cabal-sandbox-bin (or ~/.cabal/bin without a sandbox) | ||||||
| cabal install ./hledger-lib ./hledger ./hledger-ui ./hledger-web ./hledger-api \ | cabal install \ | ||||||
|   && echo "hledger executables successfully installed in ./.cabal-sandbox/bin" |   ./hledger-lib \ | ||||||
|  |   ./hledger \ | ||||||
|  |   ./hledger-ui \ | ||||||
|  |   ./hledger-web \ | ||||||
|  |   ./hledger-api \ | ||||||
|  | |||||||
| @ -23,7 +23,7 @@ homepage:       http://hledger.org | |||||||
| bug-reports:    http://bugs.hledger.org | bug-reports:    http://bugs.hledger.org | ||||||
| cabal-version:  >= 1.10 | cabal-version:  >= 1.10 | ||||||
| build-type:     Simple | 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: | extra-source-files: | ||||||
|     CHANGES |     CHANGES | ||||||
|  | |||||||
| @ -160,4 +160,4 @@ tests: | |||||||
|         dependencies: |         dependencies: | ||||||
|         - time >=1.5 |         - time >=1.5 | ||||||
| stability: stable | 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 | ||||||
|  | |||||||
| @ -25,7 +25,7 @@ homepage:       http://hledger.org | |||||||
| bug-reports:    http://bugs.hledger.org | bug-reports:    http://bugs.hledger.org | ||||||
| cabal-version:  >= 1.10 | cabal-version:  >= 1.10 | ||||||
| build-type:     Simple | 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: | extra-source-files: | ||||||
|     CHANGES |     CHANGES | ||||||
|  | |||||||
| @ -98,4 +98,4 @@ executables: | |||||||
|           dependencies: |           dependencies: | ||||||
|             - time >= 1.5 |             - time >= 1.5 | ||||||
| stability   : beta | stability   : beta | ||||||
| tested-with : GHC==7.8.4, GHC==7.10.3, GHC==8.0 | tested-with : GHC==7.10.3, GHC==8.0 | ||||||
|  | |||||||
| @ -25,7 +25,7 @@ homepage:       http://hledger.org | |||||||
| bug-reports:    http://bugs.hledger.org | bug-reports:    http://bugs.hledger.org | ||||||
| cabal-version:  >= 1.10 | cabal-version:  >= 1.10 | ||||||
| build-type:     Simple | 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: | extra-source-files: | ||||||
|       CHANGES |       CHANGES | ||||||
|  | |||||||
| @ -185,4 +185,4 @@ tests: | |||||||
|       dependencies: |       dependencies: | ||||||
|       - ghc-prim |       - ghc-prim | ||||||
| stability: stable | 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 | ||||||
|  | |||||||
| @ -25,7 +25,7 @@ homepage:       http://hledger.org | |||||||
| bug-reports:    http://bugs.hledger.org | bug-reports:    http://bugs.hledger.org | ||||||
| cabal-version:  >= 1.10 | cabal-version:  >= 1.10 | ||||||
| build-type:     Simple | 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: | extra-source-files: | ||||||
|     bench/10000x1000x10.journal |     bench/10000x1000x10.journal | ||||||
|  | |||||||
| @ -269,4 +269,4 @@ benchmarks: | |||||||
|         dependencies: |         dependencies: | ||||||
|         - time >=1.5 |         - time >=1.5 | ||||||
| stability: stable | 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
									
								
							
							
						
						
									
										15
									
								
								stack-ghc7.10.yaml
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										25
									
								
								stack-ghc7.8.yaml.old
									
									
									
									
									
										Normal 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 | ||||||
| @ -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
									
								
							
							
						
						
									
										21
									
								
								stack-ghc8.0.yaml
									
									
									
									
									
										Normal 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 | ||||||
							
								
								
									
										19
									
								
								stack.yaml
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								stack.yaml
									
									
									
									
									
								
							| @ -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
									
								
							
							
						
						
									
										1
									
								
								stack.yaml
									
									
									
									
									
										Symbolic link
									
								
							| @ -0,0 +1 @@ | |||||||
|  | stack-ghc8.0.yaml | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user