Skip to content

Commit 3945c81

Browse files
authored
Fix warnings revealed by PureScript v0.14.1 (#68)
1 parent 6347c2c commit 3945c81

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ New features:
1111
Bugfixes:
1212

1313
Other improvements:
14+
- Removed unused names and declaration found by the v0.14.1 PureScript release (#68 by @PureFunctor)
15+
- Installed dependencies directly imported into source code that were previously installed transitively and removed unused `fixed-point` dependency (#68 by @PureFunctor)
1416

1517
## [v5.0.0](https://github.com/purescript-contrib/purescript-formatters/releases/tag/v5.0.0) - 2021-02-26
1618

spago.dhall

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
11
{ name = "formatters"
22
, dependencies =
33
[ "aff"
4+
, "arrays"
45
, "assert"
6+
, "bifunctors"
57
, "console"
8+
, "control"
69
, "datetime"
710
, "effect"
8-
, "fixed-points"
11+
, "either"
12+
, "enums"
13+
, "foldable-traversable"
14+
, "integers"
915
, "lists"
16+
, "math"
17+
, "maybe"
18+
, "newtype"
1019
, "numbers"
20+
, "ordered-collections"
1121
, "parsing"
22+
, "partial"
1223
, "prelude"
1324
, "psci-support"
25+
, "strings"
1426
, "transformers"
27+
, "tuples"
1528
]
1629
, packages = ./packages.dhall
1730
, sources = [ "src/**/*.purs", "test/**/*.purs" ]

src/Data/Formatter/Internal.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repeat ∷ ∀ a. Monoid a ⇒ a → Int → a
1111
repeat = repeat' mempty
1212
where
1313
repeat' a a Int a
14-
repeat' accum part count
14+
repeat' accum _ count
1515
| count < one = accum
1616
repeat' accum part count =
1717
repeat' (accum <> part) part (count - one)

test/src/DateTime.purs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Test.DateTime (datetimeTest) where
33
import Prelude
44

55
import Control.Monad.Reader.Class (class MonadReader)
6-
import Control.Alternative (class Alternative, empty, guard)
6+
import Control.Alternative (guard)
77
import Data.DateTime (DateTime)
88
import Data.Either (Either(..))
99
import Data.Formatter.DateTime as FDT
@@ -196,6 +196,3 @@ dateformats =
196196
]
197197
}
198198
]
199-
200-
filter m a. Alternative m Monad m (a Boolean) m a m a
201-
filter f m = m >>= \x → if f x then pure x else empty

test/src/Interval.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ intervalTest = describe "Data.Formatter.Interval" do
3131
prop "should unformat RecurringInterval" arbRecurringInterval \({ str, interval }) → do
3232
(unformatRecurringInterval str) `shouldEqual` (Right interval)
3333

34-
prop "format (unformat s) = s" arbRecurringInterval \({ str, interval, formatedStr }) → do
34+
prop "format (unformat s) = s" arbRecurringInterval \({ str, formatedStr }) → do
3535
(formatRecurringInterval <$> (unformatRecurringInterval str)) `shouldEqual` (Right formatedStr)
3636

37-
prop "unformat (format s) = s" arbRecurringInterval \({ str, interval, formatedStr }) → do
37+
prop "unformat (format s) = s" arbRecurringInterval \({ interval }) → do
3838
(unformatRecurringInterval $ formatRecurringInterval interval) `shouldEqual` (Right interval)
3939

4040

0 commit comments

Comments
 (0)