pkg: rename terminfo flag, drop pretty-show conditionals
This commit is contained in:
		
							parent
							
								
									9ad7f2f7e4
								
							
						
					
					
						commit
						c3b76221d4
					
				| @ -68,10 +68,11 @@ library | |||||||
|     , deepseq |     , deepseq | ||||||
|     , directory |     , directory | ||||||
|     , filepath |     , filepath | ||||||
|  |     , megaparsec >=5 | ||||||
|     , mtl |     , mtl | ||||||
|     , mtl-compat |     , mtl-compat | ||||||
|     , old-time |     , old-time | ||||||
|     , megaparsec >=5 |     , pretty-show >=1.6.4 | ||||||
|     , regex-tdfa |     , regex-tdfa | ||||||
|     , safe >=0.2 |     , safe >=0.2 | ||||||
|     , split >=0.1 && <0.3 |     , split >=0.1 && <0.3 | ||||||
| @ -82,9 +83,6 @@ library | |||||||
|     , HUnit |     , HUnit | ||||||
|     , parsec |     , parsec | ||||||
|     , semigroups |     , semigroups | ||||||
|   if impl(ghc >=7.4) |  | ||||||
|     build-depends: |  | ||||||
|         pretty-show >=1.6.4 |  | ||||||
|   if flag(oldtime) |   if flag(oldtime) | ||||||
|     build-depends: |     build-depends: | ||||||
|         time <1.5 |         time <1.5 | ||||||
| @ -157,10 +155,11 @@ test-suite doctests | |||||||
|     , deepseq |     , deepseq | ||||||
|     , directory |     , directory | ||||||
|     , filepath |     , filepath | ||||||
|  |     , megaparsec >=5 | ||||||
|     , mtl |     , mtl | ||||||
|     , mtl-compat |     , mtl-compat | ||||||
|     , old-time |     , old-time | ||||||
|     , megaparsec >=5 |     , pretty-show >=1.6.4 | ||||||
|     , regex-tdfa |     , regex-tdfa | ||||||
|     , safe >=0.2 |     , safe >=0.2 | ||||||
|     , split >=0.1 && <0.3 |     , split >=0.1 && <0.3 | ||||||
| @ -193,10 +192,11 @@ test-suite hunittests | |||||||
|     , deepseq |     , deepseq | ||||||
|     , directory |     , directory | ||||||
|     , filepath |     , filepath | ||||||
|  |     , megaparsec >=5 | ||||||
|     , mtl |     , mtl | ||||||
|     , mtl-compat |     , mtl-compat | ||||||
|     , old-time |     , old-time | ||||||
|     , megaparsec >=5 |     , pretty-show >=1.6.4 | ||||||
|     , regex-tdfa |     , regex-tdfa | ||||||
|     , safe >=0.2 |     , safe >=0.2 | ||||||
|     , split >=0.1 && <0.3 |     , split >=0.1 && <0.3 | ||||||
| @ -208,9 +208,6 @@ test-suite hunittests | |||||||
|     , hledger-lib |     , hledger-lib | ||||||
|     , test-framework |     , test-framework | ||||||
|     , test-framework-hunit |     , test-framework-hunit | ||||||
|   if impl(ghc >=7.4) |  | ||||||
|     build-depends: |  | ||||||
|         pretty-show >=1.6.4 |  | ||||||
|   if flag(oldtime) |   if flag(oldtime) | ||||||
|     build-depends: |     build-depends: | ||||||
|         time <1.5 |         time <1.5 | ||||||
|  | |||||||
| @ -52,10 +52,11 @@ dependencies: | |||||||
| - deepseq | - deepseq | ||||||
| - directory | - directory | ||||||
| - filepath | - filepath | ||||||
|  | - megaparsec >=5 | ||||||
| - mtl | - mtl | ||||||
| - mtl-compat | - mtl-compat | ||||||
| - old-time | - old-time | ||||||
| - megaparsec >=5 | - pretty-show >=1.6.4 | ||||||
| - regex-tdfa | - regex-tdfa | ||||||
| - safe >=0.2 | - safe >=0.2 | ||||||
| - split >=0.1 && <0.3 | - split >=0.1 && <0.3 | ||||||
| @ -117,9 +118,6 @@ library: | |||||||
|   - parsec |   - parsec | ||||||
|   - semigroups |   - semigroups | ||||||
|   when: |   when: | ||||||
|   - condition: impl(ghc >=7.4) |  | ||||||
|     dependencies: |  | ||||||
|     - pretty-show >=1.6.4 |  | ||||||
|   - condition: flag(oldtime) |   - condition: flag(oldtime) | ||||||
|     then: |     then: | ||||||
|       dependencies: |       dependencies: | ||||||
| @ -143,9 +141,6 @@ tests: | |||||||
|     - test-framework |     - test-framework | ||||||
|     - test-framework-hunit |     - test-framework-hunit | ||||||
|     when: |     when: | ||||||
|     - condition: impl(ghc >=7.4) |  | ||||||
|       dependencies: |  | ||||||
|       - pretty-show >=1.6.4 |  | ||||||
|     - condition: flag(oldtime) |     - condition: flag(oldtime) | ||||||
|       then: |       then: | ||||||
|         dependencies: |         dependencies: | ||||||
|  | |||||||
| @ -70,6 +70,7 @@ executable hledger-ui | |||||||
|     , microlens >= 0.4 && < 0.5 |     , microlens >= 0.4 && < 0.5 | ||||||
|     , microlens-platform >= 0.2.3.1 && < 0.4 |     , microlens-platform >= 0.2.3.1 && < 0.4 | ||||||
|     , megaparsec >= 5 |     , megaparsec >= 5 | ||||||
|  |     , pretty-show >=1.6.4 | ||||||
|     , process >= 1.2 |     , process >= 1.2 | ||||||
|     , safe >= 0.2 |     , safe >= 0.2 | ||||||
|     , split >= 0.1 && < 0.3 |     , split >= 0.1 && < 0.3 | ||||||
| @ -92,9 +93,6 @@ executable hledger-ui | |||||||
|   else |   else | ||||||
|     build-depends: |     build-depends: | ||||||
|         time >= 1.5 |         time >= 1.5 | ||||||
|   if impl(ghc >= 7.4) |  | ||||||
|     build-depends: |  | ||||||
|         pretty-show >= 1.6.4 |  | ||||||
|   other-modules: |   other-modules: | ||||||
|       Hledger.UI |       Hledger.UI | ||||||
|       Hledger.UI.AccountsScreen |       Hledger.UI.AccountsScreen | ||||||
|  | |||||||
| @ -71,6 +71,7 @@ executables: | |||||||
|       - microlens >= 0.4 && < 0.5 |       - microlens >= 0.4 && < 0.5 | ||||||
|       - microlens-platform >= 0.2.3.1 && < 0.4 |       - microlens-platform >= 0.2.3.1 && < 0.4 | ||||||
|       - megaparsec >= 5 |       - megaparsec >= 5 | ||||||
|  |       - pretty-show >=1.6.4 | ||||||
|       - process >= 1.2 |       - process >= 1.2 | ||||||
|       - safe >= 0.2 |       - safe >= 0.2 | ||||||
|       - split >= 0.1 && < 0.3 |       - split >= 0.1 && < 0.3 | ||||||
| @ -96,8 +97,5 @@ executables: | |||||||
|         else: |         else: | ||||||
|           dependencies: |           dependencies: | ||||||
|             - time >= 1.5 |             - time >= 1.5 | ||||||
|       - condition: impl(ghc >= 7.4) |  | ||||||
|         dependencies: |  | ||||||
|           - pretty-show >= 1.6.4 |  | ||||||
| stability   : beta | stability   : beta | ||||||
| tested-with : GHC==7.8.4, GHC==7.10.3, GHC==8.0 | tested-with : GHC==7.8.4, GHC==7.10.3, GHC==8.0 | ||||||
|  | |||||||
| @ -63,16 +63,16 @@ source-repository head | |||||||
|   type: git |   type: git | ||||||
|   location: https://github.com/simonmichael/hledger |   location: https://github.com/simonmichael/hledger | ||||||
| 
 | 
 | ||||||
| flag curses |  | ||||||
|   default: True |  | ||||||
|   description: On POSIX systems, enable curses support for auto-detecting terminal width. |  | ||||||
|   manual: False |  | ||||||
| 
 |  | ||||||
| flag oldtime | flag oldtime | ||||||
|   description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal. |   description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal. | ||||||
|   manual: False |   manual: False | ||||||
|   default: False |   default: False | ||||||
| 
 | 
 | ||||||
|  | flag terminfo | ||||||
|  |   description: On POSIX systems, build with the terminfo lib for detecting terminal width. | ||||||
|  |   manual: False | ||||||
|  |   default: True | ||||||
|  | 
 | ||||||
| flag threaded | flag threaded | ||||||
|   default: True |   default: True | ||||||
|   description: Build with support for multithreaded execution |   description: Build with support for multithreaded execution | ||||||
| @ -87,6 +87,7 @@ library | |||||||
|     , directory |     , directory | ||||||
|     , file-embed >=0.0.10 && <0.1 |     , file-embed >=0.0.10 && <0.1 | ||||||
|     , filepath |     , filepath | ||||||
|  |     , pretty-show >=1.6.4 | ||||||
|     , process |     , process | ||||||
|     , temporary |     , temporary | ||||||
|     , tabular >=0.2 && <0.3 |     , tabular >=0.2 && <0.3 | ||||||
| @ -124,10 +125,7 @@ library | |||||||
|   else |   else | ||||||
|     build-depends: |     build-depends: | ||||||
|         time >=1.5 |         time >=1.5 | ||||||
|   if impl(ghc >=7.4) |   if (!(os(windows))) && (flag(terminfo)) | ||||||
|     build-depends: |  | ||||||
|         pretty-show >=1.6.4 |  | ||||||
|   if (!(os(windows))) && (flag(curses)) |  | ||||||
|     build-depends: |     build-depends: | ||||||
|         terminfo |         terminfo | ||||||
|   exposed-modules: |   exposed-modules: | ||||||
| @ -168,6 +166,7 @@ executable hledger | |||||||
|     , directory |     , directory | ||||||
|     , file-embed >=0.0.10 && <0.1 |     , file-embed >=0.0.10 && <0.1 | ||||||
|     , filepath |     , filepath | ||||||
|  |     , pretty-show >=1.6.4 | ||||||
|     , process |     , process | ||||||
|     , temporary |     , temporary | ||||||
|     , tabular >=0.2 && <0.3 |     , tabular >=0.2 && <0.3 | ||||||
| @ -207,10 +206,7 @@ executable hledger | |||||||
|   else |   else | ||||||
|     build-depends: |     build-depends: | ||||||
|         time >=1.5 |         time >=1.5 | ||||||
|   if impl(ghc >=7.4) |   if (!(os(windows))) && (flag(terminfo)) | ||||||
|     build-depends: |  | ||||||
|         pretty-show >=1.6.4 |  | ||||||
|   if (!(os(windows))) && (flag(curses)) |  | ||||||
|     build-depends: |     build-depends: | ||||||
|         terminfo |         terminfo | ||||||
|   default-language: Haskell2010 |   default-language: Haskell2010 | ||||||
| @ -228,6 +224,7 @@ test-suite test | |||||||
|     , directory |     , directory | ||||||
|     , file-embed >=0.0.10 && <0.1 |     , file-embed >=0.0.10 && <0.1 | ||||||
|     , filepath |     , filepath | ||||||
|  |     , pretty-show >=1.6.4 | ||||||
|     , process |     , process | ||||||
|     , temporary |     , temporary | ||||||
|     , tabular >=0.2 && <0.3 |     , tabular >=0.2 && <0.3 | ||||||
| @ -260,9 +257,6 @@ test-suite test | |||||||
|     build-depends: |     build-depends: | ||||||
|         shakespeare >=1.0 && <2.1 |         shakespeare >=1.0 && <2.1 | ||||||
|       , shakespeare-text >=1.0 && <1.2 |       , shakespeare-text >=1.0 && <1.2 | ||||||
|   if impl(ghc >=7.4) |  | ||||||
|     build-depends: |  | ||||||
|         pretty-show >=1.6.4 |  | ||||||
|   if flag(oldtime) |   if flag(oldtime) | ||||||
|     build-depends: |     build-depends: | ||||||
|         time <1.5 |         time <1.5 | ||||||
| @ -270,7 +264,7 @@ test-suite test | |||||||
|   else |   else | ||||||
|     build-depends: |     build-depends: | ||||||
|         time >=1.5 |         time >=1.5 | ||||||
|   if (!(os(windows))) && (flag(curses)) |   if (!(os(windows))) && (flag(terminfo)) | ||||||
|     build-depends: |     build-depends: | ||||||
|         terminfo |         terminfo | ||||||
|   default-language: Haskell2010 |   default-language: Haskell2010 | ||||||
| @ -290,6 +284,7 @@ benchmark bench | |||||||
|     , directory |     , directory | ||||||
|     , file-embed >=0.0.10 && <0.1 |     , file-embed >=0.0.10 && <0.1 | ||||||
|     , filepath |     , filepath | ||||||
|  |     , pretty-show >=1.6.4 | ||||||
|     , process |     , process | ||||||
|     , temporary |     , temporary | ||||||
|     , tabular >=0.2 && <0.3 |     , tabular >=0.2 && <0.3 | ||||||
|  | |||||||
| @ -50,9 +50,8 @@ data-files: | |||||||
| - doc/other/hledger_timedot.5.txt | - doc/other/hledger_timedot.5.txt | ||||||
| - doc/other/hledger_timedot.5.info | - doc/other/hledger_timedot.5.info | ||||||
| flags: | flags: | ||||||
|   curses: |   terminfo: | ||||||
|     description: On POSIX systems, enable curses support for auto-detecting terminal |     description: On POSIX systems, build with the terminfo lib for detecting terminal width. | ||||||
|       width. |  | ||||||
|     manual: false |     manual: false | ||||||
|     default: true |     default: true | ||||||
|   threaded: |   threaded: | ||||||
| @ -69,6 +68,7 @@ dependencies: | |||||||
| - directory | - directory | ||||||
| - file-embed >=0.0.10 && <0.1 | - file-embed >=0.0.10 && <0.1 | ||||||
| - filepath | - filepath | ||||||
|  | - pretty-show >=1.6.4 | ||||||
| - process | - process | ||||||
| - temporary | - temporary | ||||||
| - tabular >=0.2 && <0.3 | - tabular >=0.2 && <0.3 | ||||||
| @ -141,10 +141,7 @@ library: | |||||||
|     else: |     else: | ||||||
|       dependencies: |       dependencies: | ||||||
|       - time >=1.5 |       - time >=1.5 | ||||||
|   - condition: impl(ghc >=7.4) |   - condition: (!(os(windows))) && (flag(terminfo)) | ||||||
|     dependencies: |  | ||||||
|     - pretty-show >=1.6.4 |  | ||||||
|   - condition: (!(os(windows))) && (flag(curses)) |  | ||||||
|     dependencies: |     dependencies: | ||||||
|     - terminfo |     - terminfo | ||||||
| executables: | executables: | ||||||
| @ -192,10 +189,7 @@ executables: | |||||||
|       else: |       else: | ||||||
|         dependencies: |         dependencies: | ||||||
|         - time >=1.5 |         - time >=1.5 | ||||||
|     - condition: impl(ghc >=7.4) |     - condition: (!(os(windows))) && (flag(terminfo)) | ||||||
|       dependencies: |  | ||||||
|       - pretty-show >=1.6.4 |  | ||||||
|     - condition: (!(os(windows))) && (flag(curses)) |  | ||||||
|       dependencies: |       dependencies: | ||||||
|       - terminfo |       - terminfo | ||||||
| tests: | tests: | ||||||
| @ -235,9 +229,6 @@ tests: | |||||||
|         dependencies: |         dependencies: | ||||||
|         - shakespeare >=1.0 && <2.1 |         - shakespeare >=1.0 && <2.1 | ||||||
|         - shakespeare-text >=1.0 && <1.2 |         - shakespeare-text >=1.0 && <1.2 | ||||||
|     - condition: impl(ghc >=7.4) |  | ||||||
|       dependencies: |  | ||||||
|       - pretty-show >=1.6.4 |  | ||||||
|     - condition: flag(oldtime) |     - condition: flag(oldtime) | ||||||
|       then: |       then: | ||||||
|         dependencies: |         dependencies: | ||||||
| @ -246,7 +237,7 @@ tests: | |||||||
|       else: |       else: | ||||||
|         dependencies: |         dependencies: | ||||||
|         - time >=1.5 |         - time >=1.5 | ||||||
|     - condition: (!(os(windows))) && (flag(curses)) |     - condition: (!(os(windows))) && (flag(terminfo)) | ||||||
|       dependencies: |       dependencies: | ||||||
|       - terminfo |       - terminfo | ||||||
| benchmarks: | benchmarks: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user