Skip to content

Commit

Permalink
[#434] Move to 'validation-selective' (#435)
Browse files Browse the repository at this point in the history
Resolves #434
  • Loading branch information
vrom911 authored Mar 25, 2020
1 parent af5cb2c commit 27f5091
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ The changelog is available [on GitHub][2].
those versions are added to the `allow_failures` section of matrix.

_Note:_ For the Stack failure reasons see [this issue](https://github.com/commercialhaskell/stack/issues/4488).
* [#434](https://github.com/kowainik/summoner/issues/434):
Move to `validation-selective`.

## 1.4.0.0 – Dec 25, 2019 🎅

Expand Down
1 change: 1 addition & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ packages:
extra-deps:
- generic-data-0.8.0.0
- hspec-hedgehog-0.0.1.1
- validation-selective-0.0.0.0
2 changes: 1 addition & 1 deletion summoner-cli/src/Summoner/CLI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ import Options.Applicative (Parser, ParserInfo, ParserPrefs, argument, command,
subparser, subparserInline, switch, value)
import Options.Applicative.Help.Chunk (stringChunk)
import Relude.Extra.Enum (universe)
import Relude.Extra.Validation (Validation (..))
import System.Directory (doesFileExist)
import System.Info (os)
import Validation (Validation (..))

import Summoner.Ansi (errorMessage, infoMessage, successMessage, warningMessage)
import Summoner.Config (Config, ConfigP (..), PartialConfig, defaultConfig, finalise,
Expand Down
2 changes: 1 addition & 1 deletion summoner-cli/src/Summoner/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ module Summoner.Config

import Data.List (lookup)
import Generic.Data (gmappend, gmempty)
import Relude.Extra.Validation (Validation (..))
import Shellmet (($?), ($|))
import Toml (Key, TomlBiMap, TomlCodec, (.=))
import Validation (Validation (..))

import Summoner.CustomPrelude (CustomPrelude (..), customPreludeT)
import Summoner.Decision (Decision (..))
Expand Down
3 changes: 2 additions & 1 deletion summoner-cli/summoner.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ common common-options
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra.Enum
, Relude.Extra.Validation
, Relude.Unsafe
)

Expand Down Expand Up @@ -152,6 +151,7 @@ library
, text ^>= 1.2.3.0
, time >= 1.8 && < 1.10
, tomland ^>= 1.2.1.0
, validation-selective ^>= 0.0.0.0

executable summon
import: common-options
Expand Down Expand Up @@ -187,6 +187,7 @@ test-suite summoner-test
, tomland
, tree-diff >= 0.0.2 && < 0.2
, summoner
, validation-selective

ghc-options: -threaded
-rtsopts
Expand Down
2 changes: 1 addition & 1 deletion summoner-cli/test/Test/TomlSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ module Test.TomlSpec

import Hedgehog (MonadGen, forAll, tripping)
import Relude.Extra.Enum (universe)
import Relude.Extra.Validation (Validation (..))
import Test.Hspec (Spec, describe, it, shouldReturn, shouldSatisfy)
import Test.Hspec.Hedgehog (hedgehog)
import Toml.Bi.Code (decode, encode)
import Validation (Validation (..))

import Summoner.Config (ConfigP (..), PartialConfig, configCodec, defaultConfig, finalise)
import Summoner.CustomPrelude (CustomPrelude (..))
Expand Down
2 changes: 1 addition & 1 deletion summoner-tui/src/Summoner/Tui/Validation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Summoner.Tui.Validation
import Brick.Forms (formState, invalidFields, setFieldValid, setFormFocus)
import Lens.Micro (Lens', (%~), (.~), (^.))
import Relude.Extra.Enum (universe)
import Relude.Extra.Validation (Validation (..))
import Validation (Validation (..))

import Summoner.Text (moduleNameValid, packageNameValid, packageToModule)
import Summoner.Tui.Form (KitForm, SummonForm (..), getCurrentFocus, mkForm)
Expand Down
2 changes: 1 addition & 1 deletion summoner-tui/summoner-tui.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ common common-options
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra.Enum
, Relude.Extra.Validation
)
ghc-options: -Wall
-Wcompat
Expand Down Expand Up @@ -84,6 +83,7 @@ library
, microlens-th ^>= 0.4
, summoner ^>= 1.4.0
, text ^>= 1.2.3.0
, validation-selective ^>= 0.0.0.0
, vty >= 5.25 && < 5.27

executable summon-tui
Expand Down

0 comments on commit 27f5091

Please sign in to comment.