lib, cli, ui, web: drop oldtime flag, require time 1.5+
Should be safe to do now, I hope.
This commit is contained in:
		
							parent
							
								
									3778db9ec7
								
							
						
					
					
						commit
						b324d3de95
					
				| @ -47,11 +47,6 @@ source-repository head | |||||||
|   type: git |   type: git | ||||||
|   location: https://github.com/simonmichael/hledger |   location: https://github.com/simonmichael/hledger | ||||||
| 
 | 
 | ||||||
| flag oldtime |  | ||||||
|   description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal. |  | ||||||
|   manual: False |  | ||||||
|   default: False |  | ||||||
| 
 |  | ||||||
| library | library | ||||||
|   hs-source-dirs: |   hs-source-dirs: | ||||||
|       ./. |       ./. | ||||||
| @ -83,17 +78,11 @@ library | |||||||
|     , semigroups |     , semigroups | ||||||
|     , split >=0.1 && <0.3 |     , split >=0.1 && <0.3 | ||||||
|     , text >=1.2 && <1.3 |     , text >=1.2 && <1.3 | ||||||
|  |     , time >=1.5 | ||||||
|     , transformers >=0.2 && <0.6 |     , transformers >=0.2 && <0.6 | ||||||
|     , uglymemo |     , uglymemo | ||||||
|     , utf8-string >=0.3.5 && <1.1 |     , utf8-string >=0.3.5 && <1.1 | ||||||
|     , HUnit |     , HUnit | ||||||
|   if flag(oldtime) |  | ||||||
|     build-depends: |  | ||||||
|         time <1.5 |  | ||||||
|       , old-locale |  | ||||||
|   else |  | ||||||
|     build-depends: |  | ||||||
|         time >=1.5 |  | ||||||
|   exposed-modules: |   exposed-modules: | ||||||
|       Hledger |       Hledger | ||||||
|       Hledger.Data |       Hledger.Data | ||||||
| @ -177,19 +166,13 @@ test-suite doctests | |||||||
|     , semigroups |     , semigroups | ||||||
|     , split >=0.1 && <0.3 |     , split >=0.1 && <0.3 | ||||||
|     , text >=1.2 && <1.3 |     , text >=1.2 && <1.3 | ||||||
|  |     , time >=1.5 | ||||||
|     , transformers >=0.2 && <0.6 |     , transformers >=0.2 && <0.6 | ||||||
|     , uglymemo |     , uglymemo | ||||||
|     , utf8-string >=0.3.5 && <1.1 |     , utf8-string >=0.3.5 && <1.1 | ||||||
|     , HUnit |     , HUnit | ||||||
|     , doctest >=0.8 |     , doctest >=0.8 | ||||||
|     , Glob >=0.7 |     , Glob >=0.7 | ||||||
|   if flag(oldtime) |  | ||||||
|     build-depends: |  | ||||||
|         time <1.5 |  | ||||||
|       , old-locale |  | ||||||
|   else |  | ||||||
|     build-depends: |  | ||||||
|         time >=1.5 |  | ||||||
|   other-modules: |   other-modules: | ||||||
|       Hledger |       Hledger | ||||||
|       Hledger.Data |       Hledger.Data | ||||||
| @ -271,6 +254,7 @@ test-suite hunittests | |||||||
|     , semigroups |     , semigroups | ||||||
|     , split >=0.1 && <0.3 |     , split >=0.1 && <0.3 | ||||||
|     , text >=1.2 && <1.3 |     , text >=1.2 && <1.3 | ||||||
|  |     , time >=1.5 | ||||||
|     , transformers >=0.2 && <0.6 |     , transformers >=0.2 && <0.6 | ||||||
|     , uglymemo |     , uglymemo | ||||||
|     , utf8-string >=0.3.5 && <1.1 |     , utf8-string >=0.3.5 && <1.1 | ||||||
| @ -278,13 +262,6 @@ test-suite hunittests | |||||||
|     , hledger-lib |     , hledger-lib | ||||||
|     , test-framework |     , test-framework | ||||||
|     , test-framework-hunit |     , test-framework-hunit | ||||||
|   if flag(oldtime) |  | ||||||
|     build-depends: |  | ||||||
|         time <1.5 |  | ||||||
|       , old-locale |  | ||||||
|   else |  | ||||||
|     build-depends: |  | ||||||
|         time >=1.5 |  | ||||||
|   other-modules: |   other-modules: | ||||||
|       Hledger |       Hledger | ||||||
|       Hledger.Data |       Hledger.Data | ||||||
|  | |||||||
| @ -38,12 +38,6 @@ data-files: | |||||||
| - doc/hledger_timeclock.5.txt | - doc/hledger_timeclock.5.txt | ||||||
| - doc/hledger_timeclock.5.info | - doc/hledger_timeclock.5.info | ||||||
| 
 | 
 | ||||||
| flags: |  | ||||||
|   oldtime: |  | ||||||
|     description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal. |  | ||||||
|     manual: false |  | ||||||
|     default: false |  | ||||||
| 
 |  | ||||||
| dependencies: | dependencies: | ||||||
| - base >=4.8 && <5 | - base >=4.8 && <5 | ||||||
| - base-compat >=0.8.1 | - base-compat >=0.8.1 | ||||||
| @ -71,6 +65,7 @@ dependencies: | |||||||
| - semigroups | - semigroups | ||||||
| - split >=0.1 && <0.3 | - split >=0.1 && <0.3 | ||||||
| - text >=1.2 && <1.3 | - text >=1.2 && <1.3 | ||||||
|  | - time >=1.5 | ||||||
| - transformers >=0.2 && <0.6 | - transformers >=0.2 && <0.6 | ||||||
| - uglymemo | - uglymemo | ||||||
| - utf8-string >=0.3.5 && <1.1 | - utf8-string >=0.3.5 && <1.1 | ||||||
| @ -80,16 +75,6 @@ dependencies: | |||||||
| #- system-filepath | #- system-filepath | ||||||
| #- trifecta >= 0.91 | #- trifecta >= 0.91 | ||||||
| 
 | 
 | ||||||
| when: |  | ||||||
| - condition: flag(oldtime) |  | ||||||
|   then: |  | ||||||
|     dependencies: |  | ||||||
|     - time <1.5 |  | ||||||
|     - old-locale |  | ||||||
|   else: |  | ||||||
|     dependencies: |  | ||||||
|     - time >=1.5 |  | ||||||
| 
 |  | ||||||
| ghc-options: | ghc-options: | ||||||
| - -Wall | - -Wall | ||||||
| - -fno-warn-unused-do-bind | - -fno-warn-unused-do-bind | ||||||
|  | |||||||
| @ -40,11 +40,6 @@ source-repository head | |||||||
|   type: git |   type: git | ||||||
|   location: https://github.com/simonmichael/hledger |   location: https://github.com/simonmichael/hledger | ||||||
| 
 | 
 | ||||||
| flag oldtime |  | ||||||
|   description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal. |  | ||||||
|   manual: False |  | ||||||
|   default: False |  | ||||||
| 
 |  | ||||||
| flag threaded | flag threaded | ||||||
|   description: Build with support for multithreaded execution |   description: Build with support for multithreaded execution | ||||||
|   manual: False |   manual: False | ||||||
| @ -79,6 +74,7 @@ executable hledger-ui | |||||||
|     , split >= 0.1 && < 0.3 |     , split >= 0.1 && < 0.3 | ||||||
|     , text >= 1.2 && < 1.3 |     , text >= 1.2 && < 1.3 | ||||||
|     , text-zipper >= 0.4 && < 0.11 |     , text-zipper >= 0.4 && < 0.11 | ||||||
|  |     , time >= 1.5 | ||||||
|     , transformers |     , transformers | ||||||
|     , vector |     , vector | ||||||
|   if os(windows) |   if os(windows) | ||||||
| @ -87,13 +83,6 @@ executable hledger-ui | |||||||
|     build-depends: |     build-depends: | ||||||
|         brick >= 0.12 && < 0.25 |         brick >= 0.12 && < 0.25 | ||||||
|       , vty >= 5.5 && < 5.18 |       , vty >= 5.5 && < 5.18 | ||||||
|   if flag(oldtime) |  | ||||||
|     build-depends: |  | ||||||
|         time < 1.5 |  | ||||||
|       , old-locale |  | ||||||
|   else |  | ||||||
|     build-depends: |  | ||||||
|         time >= 1.5 |  | ||||||
|   if flag(threaded) |   if flag(threaded) | ||||||
|     ghc-options: -threaded |     ghc-options: -threaded | ||||||
|   other-modules: |   other-modules: | ||||||
|  | |||||||
| @ -36,10 +36,6 @@ flags: | |||||||
|     description: Build with support for multithreaded execution |     description: Build with support for multithreaded execution | ||||||
|     manual: false |     manual: false | ||||||
|     default: true |     default: true | ||||||
|   oldtime: |  | ||||||
|     description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal. |  | ||||||
|     manual: false |  | ||||||
|     default: false |  | ||||||
| 
 | 
 | ||||||
| cpp-options: -DVERSION="1.3.99" | cpp-options: -DVERSION="1.3.99" | ||||||
| 
 | 
 | ||||||
| @ -66,6 +62,7 @@ dependencies: | |||||||
|  - split >= 0.1 && < 0.3 |  - split >= 0.1 && < 0.3 | ||||||
|  - text >= 1.2 && < 1.3 |  - text >= 1.2 && < 1.3 | ||||||
|  - text-zipper >= 0.4 && < 0.11 |  - text-zipper >= 0.4 && < 0.11 | ||||||
|  |  - time >= 1.5 | ||||||
|  - transformers |  - transformers | ||||||
|  - vector |  - vector | ||||||
| 
 | 
 | ||||||
| @ -87,14 +84,6 @@ when: | |||||||
|      dependencies: |      dependencies: | ||||||
|        - brick >= 0.12 && < 0.25 |        - brick >= 0.12 && < 0.25 | ||||||
|        - vty >= 5.5 && < 5.18 |        - vty >= 5.5 && < 5.18 | ||||||
|  - condition: flag(oldtime) |  | ||||||
|    then: |  | ||||||
|      dependencies: |  | ||||||
|        - time < 1.5 |  | ||||||
|        - old-locale |  | ||||||
|    else: |  | ||||||
|      dependencies: |  | ||||||
|        - time >= 1.5 |  | ||||||
| 
 | 
 | ||||||
| executables: | executables: | ||||||
|   hledger-ui: |   hledger-ui: | ||||||
|  | |||||||
| @ -113,11 +113,6 @@ flag library-only | |||||||
|   manual: False |   manual: False | ||||||
|   default: False |   default: False | ||||||
| 
 | 
 | ||||||
| flag oldtime |  | ||||||
|   description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal. |  | ||||||
|   manual: False |  | ||||||
|   default: False |  | ||||||
| 
 |  | ||||||
| flag threaded | flag threaded | ||||||
|   description: Build with support for multithreaded execution. |   description: Build with support for multithreaded execution. | ||||||
|   manual: False |   manual: False | ||||||
| @ -148,6 +143,7 @@ library | |||||||
|     , shakespeare >=2.0.2.2 && < 2.1 |     , shakespeare >=2.0.2.2 && < 2.1 | ||||||
|     , template-haskell |     , template-haskell | ||||||
|     , text >=1.2 && <1.3 |     , text >=1.2 && <1.3 | ||||||
|  |     , time >=1.5 | ||||||
|     , transformers |     , transformers | ||||||
|     , wai |     , wai | ||||||
|     , wai-extra |     , wai-extra | ||||||
| @ -166,13 +162,6 @@ library | |||||||
|     cpp-options: -DDEVELOPMENT |     cpp-options: -DDEVELOPMENT | ||||||
|   if flag(dev) |   if flag(dev) | ||||||
|     ghc-options: -O0 |     ghc-options: -O0 | ||||||
|   if flag(oldtime) |  | ||||||
|     build-depends: |  | ||||||
|         time <1.5 |  | ||||||
|       , old-locale |  | ||||||
|   else |  | ||||||
|     build-depends: |  | ||||||
|         time >=1.5 |  | ||||||
|   exposed-modules: |   exposed-modules: | ||||||
|       Application |       Application | ||||||
|       Foundation |       Foundation | ||||||
| @ -222,6 +211,7 @@ executable hledger-web | |||||||
|     , shakespeare >=2.0.2.2 && < 2.1 |     , shakespeare >=2.0.2.2 && < 2.1 | ||||||
|     , template-haskell |     , template-haskell | ||||||
|     , text >=1.2 && <1.3 |     , text >=1.2 && <1.3 | ||||||
|  |     , time >=1.5 | ||||||
|     , transformers |     , transformers | ||||||
|     , wai |     , wai | ||||||
|     , wai-extra |     , wai-extra | ||||||
| @ -241,13 +231,6 @@ executable hledger-web | |||||||
|     cpp-options: -DDEVELOPMENT |     cpp-options: -DDEVELOPMENT | ||||||
|   if flag(dev) |   if flag(dev) | ||||||
|     ghc-options: -O0 |     ghc-options: -O0 | ||||||
|   if flag(oldtime) |  | ||||||
|     build-depends: |  | ||||||
|         time <1.5 |  | ||||||
|       , old-locale |  | ||||||
|   else |  | ||||||
|     build-depends: |  | ||||||
|         time >=1.5 |  | ||||||
|   if flag(library-only) |   if flag(library-only) | ||||||
|     buildable: False |     buildable: False | ||||||
|   if flag(threaded) |   if flag(threaded) | ||||||
| @ -283,6 +266,7 @@ test-suite test | |||||||
|     , shakespeare >=2.0.2.2 && < 2.1 |     , shakespeare >=2.0.2.2 && < 2.1 | ||||||
|     , template-haskell |     , template-haskell | ||||||
|     , text >=1.2 && <1.3 |     , text >=1.2 && <1.3 | ||||||
|  |     , time >=1.5 | ||||||
|     , transformers |     , transformers | ||||||
|     , wai |     , wai | ||||||
|     , wai-extra |     , wai-extra | ||||||
| @ -304,13 +288,6 @@ test-suite test | |||||||
|     cpp-options: -DDEVELOPMENT |     cpp-options: -DDEVELOPMENT | ||||||
|   if flag(dev) |   if flag(dev) | ||||||
|     ghc-options: -O0 |     ghc-options: -O0 | ||||||
|   if flag(oldtime) |  | ||||||
|     build-depends: |  | ||||||
|         time <1.5 |  | ||||||
|       , old-locale |  | ||||||
|   else |  | ||||||
|     build-depends: |  | ||||||
|         time >=1.5 |  | ||||||
|   other-modules: |   other-modules: | ||||||
|       HomeTest |       HomeTest | ||||||
|       TestImport |       TestImport | ||||||
|  | |||||||
| @ -60,10 +60,6 @@ flags: | |||||||
|     description: Build with support for multithreaded execution. |     description: Build with support for multithreaded execution. | ||||||
|     manual: false |     manual: false | ||||||
|     default: true |     default: true | ||||||
|   oldtime: |  | ||||||
|     description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal. |  | ||||||
|     manual: false |  | ||||||
|     default: false |  | ||||||
| 
 | 
 | ||||||
| dependencies: | dependencies: | ||||||
| - hledger-lib >= 1.3.99 && < 1.4 | - hledger-lib >= 1.3.99 && < 1.4 | ||||||
| @ -87,6 +83,7 @@ dependencies: | |||||||
| - shakespeare >=2.0.2.2 && < 2.1 | - shakespeare >=2.0.2.2 && < 2.1 | ||||||
| - template-haskell | - template-haskell | ||||||
| - text >=1.2 && <1.3 | - text >=1.2 && <1.3 | ||||||
|  | - time >=1.5 | ||||||
| - transformers | - transformers | ||||||
| - wai | - wai | ||||||
| - wai-extra | - wai-extra | ||||||
| @ -107,14 +104,6 @@ when: | |||||||
|   cpp-options: -DDEVELOPMENT |   cpp-options: -DDEVELOPMENT | ||||||
| - condition: flag(dev) | - condition: flag(dev) | ||||||
|   ghc-options: -O0 |   ghc-options: -O0 | ||||||
| - condition: flag(oldtime) |  | ||||||
|   then: |  | ||||||
|     dependencies: |  | ||||||
|     - time <1.5 |  | ||||||
|     - old-locale |  | ||||||
|   else: |  | ||||||
|     dependencies: |  | ||||||
|     - time >=1.5 |  | ||||||
| 
 | 
 | ||||||
| ghc-options: | ghc-options: | ||||||
| - -Wall | - -Wall | ||||||
|  | |||||||
| @ -63,11 +63,6 @@ source-repository head | |||||||
|   type: git |   type: git | ||||||
|   location: https://github.com/simonmichael/hledger |   location: https://github.com/simonmichael/hledger | ||||||
| 
 | 
 | ||||||
| flag oldtime |  | ||||||
|   description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal. |  | ||||||
|   manual: False |  | ||||||
|   default: False |  | ||||||
| 
 |  | ||||||
| flag terminfo | flag terminfo | ||||||
|   description: On POSIX systems, build with the terminfo lib for detecting terminal width. |   description: On POSIX systems, build with the terminfo lib for detecting terminal width. | ||||||
|   manual: False |   manual: False | ||||||
| @ -94,6 +89,7 @@ library | |||||||
|     , shakespeare >=2.0.2.2 && <2.1 |     , shakespeare >=2.0.2.2 && <2.1 | ||||||
|     , temporary |     , temporary | ||||||
|     , tabular >=0.2 && <0.3 |     , tabular >=0.2 && <0.3 | ||||||
|  |     , time >=1.5 | ||||||
|     , hledger-lib >= 1.3.99 && < 1.4 |     , hledger-lib >= 1.3.99 && < 1.4 | ||||||
|     , bytestring |     , bytestring | ||||||
|     , containers |     , containers | ||||||
| @ -115,13 +111,6 @@ library | |||||||
|     , text >=0.11 |     , text >=0.11 | ||||||
|     , utf8-string >=0.3.5 && <1.1 |     , utf8-string >=0.3.5 && <1.1 | ||||||
|     , wizards ==1.0.* |     , wizards ==1.0.* | ||||||
|   if flag(oldtime) |  | ||||||
|     build-depends: |  | ||||||
|         time <1.5 |  | ||||||
|       , old-locale |  | ||||||
|   else |  | ||||||
|     build-depends: |  | ||||||
|         time >=1.5 |  | ||||||
|   if (!(os(windows))) && (flag(terminfo)) |   if (!(os(windows))) && (flag(terminfo)) | ||||||
|     build-depends: |     build-depends: | ||||||
|         terminfo |         terminfo | ||||||
| @ -171,6 +160,7 @@ executable hledger | |||||||
|     , shakespeare >=2.0.2.2 && <2.1 |     , shakespeare >=2.0.2.2 && <2.1 | ||||||
|     , temporary |     , temporary | ||||||
|     , tabular >=0.2 && <0.3 |     , tabular >=0.2 && <0.3 | ||||||
|  |     , time >=1.5 | ||||||
|     , hledger-lib >= 1.3.99 && < 1.4 |     , hledger-lib >= 1.3.99 && < 1.4 | ||||||
|     , hledger |     , hledger | ||||||
|     , bytestring |     , bytestring | ||||||
| @ -191,13 +181,6 @@ executable hledger | |||||||
|     , text >=0.11 |     , text >=0.11 | ||||||
|     , utf8-string >=0.3.5 && <1.1 |     , utf8-string >=0.3.5 && <1.1 | ||||||
|     , wizards ==1.0.* |     , wizards ==1.0.* | ||||||
|   if flag(oldtime) |  | ||||||
|     build-depends: |  | ||||||
|         time <1.5 |  | ||||||
|       , old-locale |  | ||||||
|   else |  | ||||||
|     build-depends: |  | ||||||
|         time >=1.5 |  | ||||||
|   if (!(os(windows))) && (flag(terminfo)) |   if (!(os(windows))) && (flag(terminfo)) | ||||||
|     build-depends: |     build-depends: | ||||||
|         terminfo |         terminfo | ||||||
| @ -225,6 +208,7 @@ test-suite test | |||||||
|     , shakespeare >=2.0.2.2 && <2.1 |     , shakespeare >=2.0.2.2 && <2.1 | ||||||
|     , temporary |     , temporary | ||||||
|     , tabular >=0.2 && <0.3 |     , tabular >=0.2 && <0.3 | ||||||
|  |     , time >=1.5 | ||||||
|     , hledger-lib >= 1.3.99 && < 1.4 |     , hledger-lib >= 1.3.99 && < 1.4 | ||||||
|     , hledger |     , hledger | ||||||
|     , bytestring |     , bytestring | ||||||
| @ -247,13 +231,6 @@ test-suite test | |||||||
|     , wizards ==1.0.* |     , wizards ==1.0.* | ||||||
|     , test-framework |     , test-framework | ||||||
|     , test-framework-hunit |     , test-framework-hunit | ||||||
|   if flag(oldtime) |  | ||||||
|     build-depends: |  | ||||||
|         time <1.5 |  | ||||||
|       , old-locale |  | ||||||
|   else |  | ||||||
|     build-depends: |  | ||||||
|         time >=1.5 |  | ||||||
|   if (!(os(windows))) && (flag(terminfo)) |   if (!(os(windows))) && (flag(terminfo)) | ||||||
|     build-depends: |     build-depends: | ||||||
|         terminfo |         terminfo | ||||||
| @ -278,18 +255,12 @@ benchmark bench | |||||||
|     , shakespeare >=2.0.2.2 && <2.1 |     , shakespeare >=2.0.2.2 && <2.1 | ||||||
|     , temporary |     , temporary | ||||||
|     , tabular >=0.2 && <0.3 |     , tabular >=0.2 && <0.3 | ||||||
|  |     , time >=1.5 | ||||||
|     , hledger-lib >= 1.3.99 && < 1.4 |     , hledger-lib >= 1.3.99 && < 1.4 | ||||||
|     , hledger |     , hledger | ||||||
|     , criterion |     , criterion | ||||||
|     , html |     , html | ||||||
|     , timeit |     , timeit | ||||||
|   if flag(oldtime) |  | ||||||
|     build-depends: |  | ||||||
|         time <1.5 |  | ||||||
|       , old-locale |  | ||||||
|   else |  | ||||||
|     build-depends: |  | ||||||
|         time >=1.5 |  | ||||||
|   if (!(os(windows))) && (flag(terminfo)) |   if (!(os(windows))) && (flag(terminfo)) | ||||||
|     build-depends: |     build-depends: | ||||||
|         terminfo |         terminfo | ||||||
|  | |||||||
| @ -63,10 +63,6 @@ flags: | |||||||
|     description: Build with support for multithreaded execution |     description: Build with support for multithreaded execution | ||||||
|     manual: false |     manual: false | ||||||
|     default: true |     default: true | ||||||
|   oldtime: |  | ||||||
|     description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal. |  | ||||||
|     manual: false |  | ||||||
|     default: false |  | ||||||
| 
 | 
 | ||||||
| ghc-options: | ghc-options: | ||||||
| - -Wall | - -Wall | ||||||
| @ -89,17 +85,10 @@ dependencies: | |||||||
| - shakespeare >=2.0.2.2 && <2.1 | - shakespeare >=2.0.2.2 && <2.1 | ||||||
| - temporary | - temporary | ||||||
| - tabular >=0.2 && <0.3 | - tabular >=0.2 && <0.3 | ||||||
|  | - time >=1.5 | ||||||
| - hledger-lib >= 1.3.99 && < 1.4 | - hledger-lib >= 1.3.99 && < 1.4 | ||||||
| 
 | 
 | ||||||
| when: | when: | ||||||
| - condition: flag(oldtime) |  | ||||||
|   then: |  | ||||||
|     dependencies: |  | ||||||
|     - time <1.5 |  | ||||||
|     - old-locale |  | ||||||
|   else: |  | ||||||
|     dependencies: |  | ||||||
|     - time >=1.5 |  | ||||||
| - condition: (!(os(windows))) && (flag(terminfo)) | - condition: (!(os(windows))) && (flag(terminfo)) | ||||||
|   dependencies: |   dependencies: | ||||||
|   - terminfo |   - terminfo | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user