Skip to content

Commit

Permalink
[#304] Bump up to relude-0.5.0 and brick-0.47 (#307)
Browse files Browse the repository at this point in the history
* [#304] Bump up to relude-0.5.0 and brick-0.47

Resolves #304

* Fix tests
  • Loading branch information
chshersh authored and vrom911 committed Apr 9, 2019
1 parent d86da4b commit de75eb2
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ script:
else
stack test --system-ghc --no-terminal
fi
- curl https://raw.githubusercontent.com/kowainik/relude/988bbdd3a09df1159917012933780523644880e5/.hlint.yaml -o .hlint-relude.yaml
- curl https://raw.githubusercontent.com/kowainik/relude/55968311244690f5cc8b4484a37a63d988ea2ec4/.hlint.yaml -o .hlint-relude.yaml
- curl -sSL https://raw.github.com/ndmitchell/neil/master/misc/travis.sh | sh -s -- hlint -h .hlint-relude.yaml summoner-cli/src/ summoner-cli/test/ summoner-tui/src/

after_success:
Expand Down
3 changes: 0 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ install:
environment:
global:
CABOPTS: "--store-dir=C:\\SR"
# Remove cache, there is no button on the web
# https://www.appveyor.com/docs/build-cache/#skipping-cache-operations-for-specific-build
APPVEYOR_CACHE_SKIP_RESTORE: true

cache:
- dist-newstyle
Expand Down
12 changes: 8 additions & 4 deletions stack-8.2.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ packages:

extra-deps:
- base-noprelude-4.10.1.0
- brick-0.41.4
- config-ini-0.2.4.0
- relude-0.4.0
- relude-0.5.0
- shellmet-0.0.1
- tomland-1.0.0
- tree-diff-0.0.2

# tomland
- tomland-1.0.0
- megaparsec-7.0.4 # needed for tomland-0.5.0
- parser-combinators-1.0.0 # needed for megaparsec >= 7
- neat-interpolation-0.3.2.4 # needed because of megaparsec >= 7

# brick
- brick-0.47
- config-ini-0.2.4.0
- vty-5.25.1

allow-newer: true
16 changes: 10 additions & 6 deletions stack-8.4.4.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
resolver: lts-12.25
resolver: lts-12.26

packages:
- summoner-cli/
- summoner-tui/

extra-deps:
- base-noprelude-4.11.1.0
- brick-0.41.4
- config-ini-0.2.4.0
- relude-0.4.0
- relude-0.5.0
- shellmet-0.0.1

# tomland
- tomland-1.0.0
- megaparsec-7.0.4 # needed for tomland-0.5.0
- megaparsec-7.0.4 # needed for tomland
- neat-interpolation-0.3.2.4 # needed because of megaparsec >= 7
- vty-5.25.1

# brick
- brick-0.47
- vty-5.25.1 # needed for brick
- config-ini-0.2.4.0 # needed for brick
8 changes: 1 addition & 7 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
resolver: lts-13.15
resolver: nightly-2019-04-09

packages:
- summoner-cli/
- summoner-tui/

extra-deps:
- brick-0.41.5
- shellmet-0.0.1
- tomland-1.0.0
- config-ini-0.2.4.0 # needed for brick
- data-clist-0.1.2.2 # needed for brick
- text-zipper-0.10.1 # needed for brick
- word-wrap-0.4.1 # needed for brick
13 changes: 7 additions & 6 deletions summoner-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ The changelog is available [on GitHub][2].

## Unreleased: 1.3.0

* [#151](https://github.com/kowainik/summoner/issues/151):
Make GHC-8.6.3 default.
* [#151](https://github.com/kowainik/summoner/issues/151),
[#295](https://github.com/kowainik/summoner/issues/295):
Add support for GHC-8.6. Make GHC-8.6.4 default.
* [#268](https://github.com/kowainik/summoner/issues/268):
Simplify process of adding custom prelude in the interactive mode.
* [#272](https://github.com/kowainik/summoner/issues/272):
Expand All @@ -16,8 +17,10 @@ The changelog is available [on GitHub][2].
* __Important:__ Summoner doesn't add old GHC versions into Travis matrix for
Stack. See this Stack issue for reasoning:
https://github.com/commercialhaskell/stack/issues/4488
* [#286](https://github.com/kowainik/summoner/issues/286):
Bump up to `tomland-1.0.0`
* [#286](https://github.com/kowainik/summoner/issues/286),
[#288](https://github.com/kowainik/summoner/issues/304),
[#304](https://github.com/kowainik/summoner/issues/304):
Bump up to `tomland-1.0.0`, `relude-0.5.0`, `shellmet-0.0.1`, `brick-0.47`.
* [#282](https://github.com/kowainik/summoner/issues/282):
Allow users to extend the .gitignore file.
* [#285](https://github.com/kowainik/summoner/issues/285):
Expand All @@ -27,8 +30,6 @@ The changelog is available [on GitHub][2].

_Migration guide:_ Please, rename `warnings` field if you use one, it will be
removed in the very next release. Use `ghc-options` instead.
* [#295](https://github.com/kowainik/summoner/issues/295):
Add support for ghc-8.6.4.
* Drop support for GHC-8.6.3 on CI. Support GHC-8.6.4 on CI.
* [#280](https://github.com/kowainik/summoner/issues/280):
Support build with `cabal-install` on the AppVeyor CI.
Expand Down
3 changes: 0 additions & 3 deletions summoner-cli/src/Summoner/Template/GitHub.hs
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,6 @@ gitHubFiles Settings{..} =
environment:
global:
CABOPTS: "--store-dir=C:\\SR"
# Remove cache, there is no button on the web
# https://www.appveyor.com/docs/build-cache/#skipping-cache-operations-for-specific-build
APPVEYOR_CACHE_SKIP_RESTORE: true

cache:
- dist-newstyle
Expand Down
2 changes: 1 addition & 1 deletion summoner-cli/summoner.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ library
, neat-interpolation ^>= 0.3.2.2
, optparse-applicative ^>= 0.14.2.0
, process ^>= 1.6.1.0
, relude ^>= 0.4.0
, relude ^>= 0.5.0
, shellmet ^>= 0.0.1
, text ^>= 1.2.3.0
, time ^>= 1.8
Expand Down
3 changes: 0 additions & 3 deletions summoner-cli/test/golden/fullProject/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ install:
environment:
global:
CABOPTS: "--store-dir=C:\\SR"
# Remove cache, there is no button on the web
# https://www.appveyor.com/docs/build-cache/#skipping-cache-operations-for-specific-build
APPVEYOR_CACHE_SKIP_RESTORE: true

cache:
- dist-newstyle
Expand Down
4 changes: 3 additions & 1 deletion summoner-tui/src/Summoner/Tui.hs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ runTuiShowLicense (toText -> name) = case parseLicenseName name of

-- | Runs brick application with given start state.
runApp :: Ord n => App s e n -> s -> IO s
runApp = customMain buildVty Nothing
runApp app s = do
initialVty <- buildVty
customMain initialVty buildVty Nothing app s
where
buildVty :: IO V.Vty
buildVty = do
Expand Down
6 changes: 3 additions & 3 deletions summoner-tui/summoner-tui.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extra-doc-files: README.md
, CHANGELOG.md
tested-with: GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.3
, GHC == 8.6.4

source-repository head
type: git
Expand All @@ -41,12 +41,12 @@ library
Prelude

build-depends: base-noprelude >= 4.10 && < 4.13
, brick ^>= 0.41.4
, brick ^>= 0.47
, directory ^>= 1.3.0.2
, filepath ^>= 1.4.1.2
, microlens ^>= 0.4
, microlens-th ^>= 0.4
, relude ^>= 0.4.0
, relude ^>= 0.5.0
, summoner ^>= 1.3.0
, text ^>= 1.2.3.0
, vty ^>= 5.25
Expand Down

0 comments on commit de75eb2

Please sign in to comment.