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:
parent
c9e16b83ef
commit
b2e7cc7827
@ -230,8 +230,13 @@ runBrickUi uopts@UIOpts{cliopts_=copts@CliOpts{inputopts_=_iopts,reportopts_=rop
|
|||||||
|
|
||||||
-- and start the app. Must be inside the withManager block
|
-- and start the app. Must be inside the withManager block
|
||||||
#if MIN_VERSION_vty(5,15,0)
|
#if MIN_VERSION_vty(5,15,0)
|
||||||
let myVty = mkVty mempty
|
let mkvty = mkVty mempty
|
||||||
#else
|
#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
|
#endif
|
||||||
void $ customMain myVty (Just eventChan) brickapp ui
|
|
||||||
|
|||||||
@ -81,7 +81,7 @@ when:
|
|||||||
buildable: false
|
buildable: false
|
||||||
else:
|
else:
|
||||||
dependencies:
|
dependencies:
|
||||||
- brick >=0.23 && <0.47
|
- brick >=0.23
|
||||||
- unix
|
- unix
|
||||||
- vty >=5.5
|
- vty >=5.5
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user