Skip to content

Commit

Permalink
Fix warnings and missing direct dependencies causing CI failures (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntwilson authored Jul 28, 2021
1 parent fc75f16 commit 037d6a6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,28 @@
"dependencies": {
"purescript-argonaut-core": "^6.0.0",
"purescript-arrays": "^6.0.0",
"purescript-bifunctors": "^5.0.0",
"purescript-effect": "^3.0.0",
"purescript-either": "^5.0.0",
"purescript-foldable-traversable": "^5.0.0",
"purescript-foreign-object": "^3.0.0",
"purescript-identity": "^5.0.0",
"purescript-integers": "^5.0.0",
"purescript-lists": "^6.0.0",
"purescript-maybe": "^5.0.0",
"purescript-nonempty": "^6.0.0",
"purescript-ordered-collections": "^2.0.0",
"purescript-prelude": "^5.0.0",
"purescript-record": "^3.0.0"
"purescript-record": "^3.0.0",
"purescript-strings": "^5.0.0",
"purescript-tuples": "^6.0.0"
},
"devDependencies": {
"purescript-assert": "^5.0.0",
"purescript-console": "^5.0.0",
"purescript-quickcheck": "^7.0.0"
"purescript-exceptions": "^5.0.0",
"purescript-gen": "^3.0.0",
"purescript-quickcheck": "^7.0.0",
"purescript-transformers": "^5.0.0"
}
}
9 changes: 9 additions & 0 deletions spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,27 @@
[ "argonaut-core"
, "arrays"
, "assert"
, "bifunctors"
, "console"
, "effect"
, "either"
, "exceptions"
, "foldable-traversable"
, "foreign-object"
, "gen"
, "identity"
, "integers"
, "lists"
, "maybe"
, "nonempty"
, "ordered-collections"
, "prelude"
, "psci-support"
, "quickcheck"
, "record"
, "strings"
, "transformers"
, "tuples"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs", "test/**/*.purs" ]
Expand Down
4 changes: 2 additions & 2 deletions test/Test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ combinatorsCheck = do
obj <- genObj
let appended = (key := val) ~> obj
case toObject appended >>= FO.lookup key of
Just value -> pure Success
Just _ -> pure Success
_ -> pure (Failed "failed to lookup key")

propAssocAppendOptional :: Gen Result
Expand All @@ -195,7 +195,7 @@ combinatorsCheck = do
obj <- genObj
let appended = (key :=? maybeVal) ~>? obj
pure case toObject appended >>= FO.lookup key of
Just value -> isJust maybeVal === true
Just _ -> isJust maybeVal === true
_ -> isNothing maybeVal === true

propGetJObjectField :: Gen Result
Expand Down

0 comments on commit 037d6a6

Please sign in to comment.