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
|
-- 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 (Added f _) = "Added " ++ show f
|
||||||
showFSNEvent (Modified f _) = "Modified " ++ show f
|
showFSNEvent (Modified f _) = "Modified " ++ show f
|
||||||
|
|||||||
@ -85,8 +85,8 @@ executable hledger-ui
|
|||||||
buildable: False
|
buildable: False
|
||||||
else
|
else
|
||||||
build-depends:
|
build-depends:
|
||||||
brick >= 0.12 && < 0.17
|
brick >= 0.12 && < 0.18
|
||||||
, vty >= 5.5 && < 5.15
|
, vty >= 5.5 && < 5.16
|
||||||
if flag(threaded)
|
if flag(threaded)
|
||||||
ghc-options: -threaded
|
ghc-options: -threaded
|
||||||
if flag(oldtime)
|
if flag(oldtime)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user