ui: support brick 0.47+ as well

I should have supported latest brick, to get into stackage nightly.
Now it does.

No upper bound, once again; responding lazily to brick API changes
seems less disruptive overall.
This commit is contained in:
Simon Michael 2019-03-20 17:38:44 -07:00
parent c9e16b83ef
commit b2e7cc7827
2 changed files with 9 additions and 4 deletions

View File

@ -230,8 +230,13 @@ runBrickUi uopts@UIOpts{cliopts_=copts@CliOpts{inputopts_=_iopts,reportopts_=rop
-- and start the app. Must be inside the withManager block
#if MIN_VERSION_vty(5,15,0)
let myVty = mkVty mempty
let mkvty = mkVty mempty
#else
let myVty = mkVty def
let mkvty = mkVty def
#endif
#if MIN_VERSION_brick(0,47,0)
vty0 <- mkvty
void $ customMain vty0 mkvty (Just eventChan) brickapp ui
#else
void $ customMain mkvty (Just eventChan) brickapp ui
#endif
void $ customMain myVty (Just eventChan) brickapp ui

View File

@ -81,7 +81,7 @@ when:
buildable: false
else:
dependencies:
- brick >=0.23 && <0.47
- brick >=0.23
- unix
- vty >=5.5