pkg: rename, clean up oldtime flag
This commit is contained in:
parent
1b65582908
commit
cf8ebd4ae2
@ -52,10 +52,10 @@ flag double
|
|||||||
default: False
|
default: False
|
||||||
description: Use old Double number representation (instead of Decimal), for testing/benchmarking.
|
description: Use old Double number representation (instead of Decimal), for testing/benchmarking.
|
||||||
|
|
||||||
flag old-locale
|
flag oldtime
|
||||||
default: False
|
description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal.
|
||||||
description: A compatibility flag, set automatically by cabal. If false then depend on time >= 1.5, if true then depend on time < 1.5 together with old-locale.
|
|
||||||
manual: False
|
manual: False
|
||||||
|
default: False
|
||||||
|
|
||||||
library
|
library
|
||||||
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans
|
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans
|
||||||
@ -90,7 +90,7 @@ library
|
|||||||
if impl(ghc >=7.4)
|
if impl(ghc >=7.4)
|
||||||
build-depends:
|
build-depends:
|
||||||
pretty-show >=1.6.4
|
pretty-show >=1.6.4
|
||||||
if flag(old-locale)
|
if flag(oldtime)
|
||||||
build-depends:
|
build-depends:
|
||||||
time <1.5
|
time <1.5
|
||||||
, old-locale
|
, old-locale
|
||||||
@ -216,7 +216,7 @@ test-suite hunittests
|
|||||||
if impl(ghc >=7.4)
|
if impl(ghc >=7.4)
|
||||||
build-depends:
|
build-depends:
|
||||||
pretty-show >=1.6.4
|
pretty-show >=1.6.4
|
||||||
if flag(old-locale)
|
if flag(oldtime)
|
||||||
build-depends:
|
build-depends:
|
||||||
time <1.5
|
time <1.5
|
||||||
, old-locale
|
, old-locale
|
||||||
|
|||||||
@ -38,10 +38,8 @@ flags:
|
|||||||
description: Use old Double number representation (instead of Decimal), for testing/benchmarking.
|
description: Use old Double number representation (instead of Decimal), for testing/benchmarking.
|
||||||
manual: true
|
manual: true
|
||||||
default: false
|
default: false
|
||||||
old-locale:
|
oldtime:
|
||||||
description: ! 'A compatibility flag, set automatically by cabal.
|
description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal.
|
||||||
If false then depend on time >= 1.5,
|
|
||||||
if true then depend on time < 1.5 together with old-locale.'
|
|
||||||
manual: false
|
manual: false
|
||||||
default: false
|
default: false
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -126,7 +124,7 @@ library:
|
|||||||
- condition: impl(ghc >=7.4)
|
- condition: impl(ghc >=7.4)
|
||||||
dependencies:
|
dependencies:
|
||||||
- pretty-show >=1.6.4
|
- pretty-show >=1.6.4
|
||||||
- condition: flag(old-locale)
|
- condition: flag(oldtime)
|
||||||
then:
|
then:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time <1.5
|
- time <1.5
|
||||||
@ -152,7 +150,7 @@ tests:
|
|||||||
- condition: impl(ghc >=7.4)
|
- condition: impl(ghc >=7.4)
|
||||||
dependencies:
|
dependencies:
|
||||||
- pretty-show >=1.6.4
|
- pretty-show >=1.6.4
|
||||||
- condition: flag(old-locale)
|
- condition: flag(oldtime)
|
||||||
then:
|
then:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time <1.5
|
- time <1.5
|
||||||
|
|||||||
@ -40,11 +40,10 @@ source-repository head
|
|||||||
type: git
|
type: git
|
||||||
location: https://github.com/simonmichael/hledger
|
location: https://github.com/simonmichael/hledger
|
||||||
|
|
||||||
flag old-locale
|
flag oldtime
|
||||||
default: False
|
description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal.
|
||||||
description: A compatibility flag, set automatically by cabal. If false then depend on time >= 1.5, if true then depend on time < 1.5 together with old-locale.
|
|
||||||
|
|
||||||
manual: False
|
manual: False
|
||||||
|
default: False
|
||||||
|
|
||||||
flag threaded
|
flag threaded
|
||||||
default: True
|
default: True
|
||||||
@ -86,7 +85,7 @@ executable hledger-ui
|
|||||||
, vty >= 5.5 && < 5.8
|
, vty >= 5.5 && < 5.8
|
||||||
if flag(threaded)
|
if flag(threaded)
|
||||||
ghc-options: -threaded
|
ghc-options: -threaded
|
||||||
if flag(old-locale)
|
if flag(oldtime)
|
||||||
build-depends:
|
build-depends:
|
||||||
time < 1.5
|
time < 1.5
|
||||||
, old-locale
|
, old-locale
|
||||||
|
|||||||
@ -31,11 +31,8 @@ flags:
|
|||||||
description: Build with support for multithreaded execution
|
description: Build with support for multithreaded execution
|
||||||
manual: false
|
manual: false
|
||||||
default: true
|
default: true
|
||||||
old-locale:
|
oldtime:
|
||||||
description: >
|
description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal.
|
||||||
A compatibility flag, set automatically by cabal.
|
|
||||||
If false then depend on time >= 1.5,
|
|
||||||
if true then depend on time < 1.5 together with old-locale.
|
|
||||||
manual: false
|
manual: false
|
||||||
default: false
|
default: false
|
||||||
# curses is required to build terminfo for vty for hledger-ui.
|
# curses is required to build terminfo for vty for hledger-ui.
|
||||||
@ -91,7 +88,7 @@ executables:
|
|||||||
- vty >= 5.5 && < 5.8
|
- vty >= 5.5 && < 5.8
|
||||||
- condition: flag(threaded)
|
- condition: flag(threaded)
|
||||||
ghc-options: -threaded
|
ghc-options: -threaded
|
||||||
- condition: flag(old-locale)
|
- condition: flag(oldtime)
|
||||||
then:
|
then:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time < 1.5
|
- time < 1.5
|
||||||
|
|||||||
@ -113,10 +113,10 @@ flag library-only
|
|||||||
description: Build for use with "yesod devel"
|
description: Build for use with "yesod devel"
|
||||||
manual: False
|
manual: False
|
||||||
|
|
||||||
flag old-locale
|
flag oldtime
|
||||||
default: False
|
description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal.
|
||||||
description: A compatibility flag, set automatically by cabal. If false then depend on time >= 1.5, if true then depend on time < 1.5 together with old-locale.
|
|
||||||
manual: False
|
manual: False
|
||||||
|
default: False
|
||||||
|
|
||||||
flag threaded
|
flag threaded
|
||||||
default: True
|
default: True
|
||||||
@ -163,7 +163,7 @@ library
|
|||||||
, mtl
|
, mtl
|
||||||
if (flag(dev)) || (flag(library-only))
|
if (flag(dev)) || (flag(library-only))
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
if flag(old-locale)
|
if flag(oldtime)
|
||||||
build-depends:
|
build-depends:
|
||||||
time <1.5
|
time <1.5
|
||||||
, old-locale
|
, old-locale
|
||||||
@ -240,7 +240,7 @@ executable hledger-web
|
|||||||
ghc-options: -O0
|
ghc-options: -O0
|
||||||
if flag(dev)
|
if flag(dev)
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
if flag(old-locale)
|
if flag(oldtime)
|
||||||
build-depends:
|
build-depends:
|
||||||
time <1.5
|
time <1.5
|
||||||
, old-locale
|
, old-locale
|
||||||
@ -295,7 +295,7 @@ test-suite test
|
|||||||
, hledger-web
|
, hledger-web
|
||||||
, hspec
|
, hspec
|
||||||
, yesod-test
|
, yesod-test
|
||||||
if flag(old-locale)
|
if flag(oldtime)
|
||||||
build-depends:
|
build-depends:
|
||||||
time <1.5
|
time <1.5
|
||||||
, old-locale
|
, old-locale
|
||||||
|
|||||||
@ -55,10 +55,8 @@ flags:
|
|||||||
description: Build with support for multithreaded execution.
|
description: Build with support for multithreaded execution.
|
||||||
manual: false
|
manual: false
|
||||||
default: true
|
default: true
|
||||||
old-locale:
|
oldtime:
|
||||||
description: ! 'A compatibility flag, set automatically by cabal.
|
description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal.
|
||||||
If false then depend on time >= 1.5,
|
|
||||||
if true then depend on time < 1.5 together with old-locale.'
|
|
||||||
manual: false
|
manual: false
|
||||||
default: false
|
default: false
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -126,7 +124,7 @@ library:
|
|||||||
when:
|
when:
|
||||||
- condition: (flag(dev)) || (flag(library-only))
|
- condition: (flag(dev)) || (flag(library-only))
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
- condition: flag(old-locale)
|
- condition: flag(oldtime)
|
||||||
then:
|
then:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time <1.5
|
- time <1.5
|
||||||
@ -151,7 +149,7 @@ executables:
|
|||||||
ghc-options: -O0
|
ghc-options: -O0
|
||||||
- condition: flag(dev)
|
- condition: flag(dev)
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
- condition: flag(old-locale)
|
- condition: flag(oldtime)
|
||||||
then:
|
then:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time <1.5
|
- time <1.5
|
||||||
@ -169,7 +167,7 @@ tests:
|
|||||||
- hspec
|
- hspec
|
||||||
- yesod-test
|
- yesod-test
|
||||||
when:
|
when:
|
||||||
- condition: flag(old-locale)
|
- condition: flag(oldtime)
|
||||||
then:
|
then:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time <1.5
|
- time <1.5
|
||||||
|
|||||||
@ -68,10 +68,10 @@ flag curses
|
|||||||
description: On POSIX systems, enable curses support for auto-detecting terminal width.
|
description: On POSIX systems, enable curses support for auto-detecting terminal width.
|
||||||
manual: False
|
manual: False
|
||||||
|
|
||||||
flag old-locale
|
flag oldtime
|
||||||
default: False
|
description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal.
|
||||||
description: A compatibility flag, set automatically by cabal. If false then depend on time >= 1.5, if true then depend on time < 1.5 together with old-locale.
|
|
||||||
manual: False
|
manual: False
|
||||||
|
default: False
|
||||||
|
|
||||||
flag threaded
|
flag threaded
|
||||||
default: True
|
default: True
|
||||||
@ -117,7 +117,7 @@ library
|
|||||||
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 flag(old-locale)
|
if flag(oldtime)
|
||||||
build-depends:
|
build-depends:
|
||||||
time <1.5
|
time <1.5
|
||||||
, old-locale
|
, old-locale
|
||||||
@ -200,10 +200,10 @@ executable hledger
|
|||||||
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 flag(old-locale)
|
if flag(oldtime)
|
||||||
build-depends:
|
build-depends:
|
||||||
time <1.5
|
time <1.5
|
||||||
, old-locale
|
, oldtime
|
||||||
else
|
else
|
||||||
build-depends:
|
build-depends:
|
||||||
time >=1.5
|
time >=1.5
|
||||||
@ -263,10 +263,10 @@ test-suite test
|
|||||||
if impl(ghc >=7.4)
|
if impl(ghc >=7.4)
|
||||||
build-depends:
|
build-depends:
|
||||||
pretty-show >=1.6.4
|
pretty-show >=1.6.4
|
||||||
if flag(old-locale)
|
if flag(oldtime)
|
||||||
build-depends:
|
build-depends:
|
||||||
time <1.5
|
time <1.5
|
||||||
, old-locale
|
, oldtime
|
||||||
else
|
else
|
||||||
build-depends:
|
build-depends:
|
||||||
time >=1.5
|
time >=1.5
|
||||||
@ -298,10 +298,10 @@ benchmark bench
|
|||||||
, criterion
|
, criterion
|
||||||
, html
|
, html
|
||||||
, timeit
|
, timeit
|
||||||
if flag(old-locale)
|
if flag(oldtime)
|
||||||
build-depends:
|
build-depends:
|
||||||
time <1.5
|
time <1.5
|
||||||
, old-locale
|
, oldtime
|
||||||
else
|
else
|
||||||
build-depends:
|
build-depends:
|
||||||
time >=1.5
|
time >=1.5
|
||||||
|
|||||||
@ -59,10 +59,8 @@ flags:
|
|||||||
description: Build with support for multithreaded execution
|
description: Build with support for multithreaded execution
|
||||||
manual: false
|
manual: false
|
||||||
default: true
|
default: true
|
||||||
old-locale:
|
oldtime:
|
||||||
description: ! 'A compatibility flag, set automatically by cabal.
|
description: If building with time < 1.5, also depend on old-locale. Set automatically by cabal.
|
||||||
If false then depend on time >= 1.5,
|
|
||||||
if true then depend on time < 1.5 together with old-locale.'
|
|
||||||
manual: false
|
manual: false
|
||||||
default: false
|
default: false
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -135,7 +133,7 @@ library:
|
|||||||
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: flag(old-locale)
|
- condition: flag(oldtime)
|
||||||
then:
|
then:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time <1.5
|
- time <1.5
|
||||||
@ -186,11 +184,11 @@ executables:
|
|||||||
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: flag(old-locale)
|
- condition: flag(oldtime)
|
||||||
then:
|
then:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time <1.5
|
- time <1.5
|
||||||
- old-locale
|
- oldtime
|
||||||
else:
|
else:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time >=1.5
|
- time >=1.5
|
||||||
@ -240,11 +238,11 @@ tests:
|
|||||||
- condition: impl(ghc >=7.4)
|
- condition: impl(ghc >=7.4)
|
||||||
dependencies:
|
dependencies:
|
||||||
- pretty-show >=1.6.4
|
- pretty-show >=1.6.4
|
||||||
- condition: flag(old-locale)
|
- condition: flag(oldtime)
|
||||||
then:
|
then:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time <1.5
|
- time <1.5
|
||||||
- old-locale
|
- oldtime
|
||||||
else:
|
else:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time >=1.5
|
- time >=1.5
|
||||||
@ -262,11 +260,11 @@ benchmarks:
|
|||||||
- html
|
- html
|
||||||
- timeit
|
- timeit
|
||||||
when:
|
when:
|
||||||
- condition: flag(old-locale)
|
- condition: flag(oldtime)
|
||||||
then:
|
then:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time <1.5
|
- time <1.5
|
||||||
- old-locale
|
- oldtime
|
||||||
else:
|
else:
|
||||||
dependencies:
|
dependencies:
|
||||||
- time >=1.5
|
- time >=1.5
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user