hledger-ui: add support for brick 0.17 and vty 0.15 (#494)

This commit is contained in:
Peter Simons 2017-01-25 18:35:47 +01:00 committed by Simon Michael
parent 6859b94f4b
commit e3d78fd0db
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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)