mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
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:
parent
a1c0835445
commit
ea52c3d620
@ -212,7 +212,12 @@ runBrickUi uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}} j = do
|
|||||||
d
|
d
|
||||||
-- predicate: ignore changes not involving our files
|
-- predicate: ignore changes not involving our files
|
||||||
(\fev -> case fev of
|
(\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
|
-- Added f _ -> f `elem` files
|
||||||
-- Removed f _ -> f `elem` files
|
-- Removed f _ -> f `elem` files
|
||||||
-- we don't handle adding/removing journal files right now
|
-- we don't handle adding/removing journal files right now
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
--
|
--
|
||||||
-- see: https://github.com/sol/hpack
|
-- see: https://github.com/sol/hpack
|
||||||
--
|
--
|
||||||
-- hash: 93120fb2299854b48774c4d03660702d22bd43021aa4030f664636b8bc0d0738
|
-- hash: 8d627646c88a184e5c5ceee98240bc0a5e80936fb197fef9b480c422526f1d7c
|
||||||
|
|
||||||
name: hledger-ui
|
name: hledger-ui
|
||||||
version: 1.10
|
version: 1.10
|
||||||
@ -75,7 +75,7 @@ executable hledger-ui
|
|||||||
, data-default
|
, data-default
|
||||||
, directory
|
, directory
|
||||||
, filepath
|
, filepath
|
||||||
, fsnotify >=0.3.0.1
|
, fsnotify >=0.2.1.2 && <0.4
|
||||||
, hledger >=1.10 && <1.11
|
, hledger >=1.10 && <1.11
|
||||||
, hledger-lib >=1.10 && <1.11
|
, hledger-lib >=1.10 && <1.11
|
||||||
, megaparsec >=6.4.1
|
, megaparsec >=6.4.1
|
||||||
|
@ -51,7 +51,7 @@ dependencies:
|
|||||||
- data-default
|
- data-default
|
||||||
- directory
|
- directory
|
||||||
- filepath
|
- filepath
|
||||||
- fsnotify >=0.3.0.1
|
- fsnotify >=0.2.1.2 && <0.4
|
||||||
- HUnit
|
- HUnit
|
||||||
- microlens >=0.4
|
- microlens >=0.4
|
||||||
- microlens-platform >=0.2.3.1
|
- microlens-platform >=0.2.3.1
|
||||||
|
@ -9,10 +9,7 @@ packages:
|
|||||||
- hledger-web
|
- hledger-web
|
||||||
- hledger-api
|
- hledger-api
|
||||||
|
|
||||||
extra-deps:
|
#extra-deps:
|
||||||
# hledger-ui
|
|
||||||
# newer fsnotify has a different api and may be more robust
|
|
||||||
- fsnotify-0.3.0.1
|
|
||||||
|
|
||||||
nix:
|
nix:
|
||||||
pure: false
|
pure: false
|
||||||
|
Loading…
Reference in New Issue
Block a user