ui: restore support for fsnotify 0.2.1.2, as well as 0.3.x (#833)

For easier stackage entry.
This commit is contained in:
Simon Michael 2018-07-03 12:46:56 +01:00
parent a1c0835445
commit ea52c3d620
4 changed files with 10 additions and 8 deletions

View File

@ -212,7 +212,12 @@ runBrickUi uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}} j = do
d
-- predicate: ignore changes not involving our files
(\fev -> case fev of
Modified f _ False -> f `elem` files
#if MIN_VERSION_fsnotify(0,3,0)
Modified f _ False
#else
Modified f _
#endif
-> f `elem` files
-- Added f _ -> f `elem` files
-- Removed f _ -> f `elem` files
-- we don't handle adding/removing journal files right now

View File

@ -2,7 +2,7 @@
--
-- see: https://github.com/sol/hpack
--
-- hash: 93120fb2299854b48774c4d03660702d22bd43021aa4030f664636b8bc0d0738
-- hash: 8d627646c88a184e5c5ceee98240bc0a5e80936fb197fef9b480c422526f1d7c
name: hledger-ui
version: 1.10
@ -75,7 +75,7 @@ executable hledger-ui
, data-default
, directory
, filepath
, fsnotify >=0.3.0.1
, fsnotify >=0.2.1.2 && <0.4
, hledger >=1.10 && <1.11
, hledger-lib >=1.10 && <1.11
, megaparsec >=6.4.1

View File

@ -51,7 +51,7 @@ dependencies:
- data-default
- directory
- filepath
- fsnotify >=0.3.0.1
- fsnotify >=0.2.1.2 && <0.4
- HUnit
- microlens >=0.4
- microlens-platform >=0.2.3.1

View File

@ -9,10 +9,7 @@ packages:
- hledger-web
- hledger-api
extra-deps:
# hledger-ui
# newer fsnotify has a different api and may be more robust
- fsnotify-0.3.0.1
#extra-deps:
nix:
pure: false