mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 12:24:43 +03:00
hledger-ui: add support for brick 0.17 and vty 0.15 (#494)
This commit is contained in:
parent
6859b94f4b
commit
e3d78fd0db
@ -226,7 +226,12 @@ runBrickUi uopts@UIOpts{cliopts_=copts@CliOpts{reportopts_=ropts}} j = do
|
||||
)
|
||||
|
||||
-- and start the app. Must be inside the withManager block
|
||||
void $ customMain (mkVty def) (Just eventChan) brickapp ui
|
||||
#if MIN_VERSION_vty(0,15,0)
|
||||
let myVty = mkVty mempty
|
||||
#else
|
||||
let myVty = mkVty def
|
||||
#endif
|
||||
void $ customMain myVty (Just eventChan) brickapp ui
|
||||
|
||||
showFSNEvent (Added f _) = "Added " ++ show f
|
||||
showFSNEvent (Modified f _) = "Modified " ++ show f
|
||||
|
@ -85,8 +85,8 @@ executable hledger-ui
|
||||
buildable: False
|
||||
else
|
||||
build-depends:
|
||||
brick >= 0.12 && < 0.17
|
||||
, vty >= 5.5 && < 5.15
|
||||
brick >= 0.12 && < 0.18
|
||||
, vty >= 5.5 && < 5.16
|
||||
if flag(threaded)
|
||||
ghc-options: -threaded
|
||||
if flag(oldtime)
|
||||
|
Loading…
Reference in New Issue
Block a user