pinned-warnings 0.1.0.14 → 0.1.0.15
raw patch · 3 files changed
+9/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- pinned-warnings.cabal +1/−1
- src/Internal/FixWarnings.hs +1/−1
- test/Spec.hs +7/−0
pinned-warnings.cabal view
@@ -4,7 +4,7 @@ -- http://haskell.org/cabal/users-guide/ name: pinned-warnings-version: 0.1.0.14+version: 0.1.0.15 synopsis: Preserve warnings in a GHCi session description: Please see the README on GitHub at <https://github.com/aaronallen8455/pinned-warnings#readme> homepage: https://github.com/aaronallen8455/pinned-warnings#readme
src/Internal/FixWarnings.hs view
@@ -173,7 +173,7 @@ -> Just $ start'' <> BS.dropSpace end'' | otherwise -> Just $ start'' <> end' -- If bound on the right by ')', remove the suffix containing ',' from start- (')', _) -> Just $ BS.init startTrim <> end'+ (')', _) -> Just $ BS.dropWhileEnd (== ',') startTrim <> end' where startTrim = BS.dropWhileEnd isSpace start'' _ -> Nothing
test/Spec.hs view
@@ -87,6 +87,9 @@ fixRedundancyWarning 1 (IndividualThings [":|"]) input23 @?= Just output23++ fixRedundancyWarning 1 (IndividualThings ["foo"]) input24+ @?= Just output24 ] input1, output1 :: BS.ByteString@@ -214,3 +217,7 @@ input23, output23 :: [BS.ByteString] input23 = [ "import Data.List.NonEmpty (NonEmpty((:|), bar), foo)" ] output23 = [ "import Data.List.NonEmpty (NonEmpty(bar), foo)" ]++input24, output24 :: [BS.ByteString]+input24 = [ "import Foo (Foo(foo))" ]+output24 = [ "import Foo (Foo)" ]