on master help sign in
Bump version bounds
commitc1ea571fd3d8faa5e523cd3db455feb5f83d9bfb authorAvi Dessauer <avi.the.coder@gmail.com> dateSun 19 Jan 2020, 19:35 (7 years ago) parentca8cb04
2 files changed+7−7
ormolu.cabal+4−4 tests/Ormolu/PrinterSpec.hs+3−3
ormolu.cabal+4−4
@@ -68,7 +68,7 @@ library
6868 , containers >= 0.5 && < 0.7
6969 , dlist >= 0.8 && < 0.9
7070 , exceptions >= 0.6 && < 0.11
71− , ghc-lib-parser >= 8.8.1 && < 8.8.2
71+ , ghc-lib-parser >= 8.8.1 && < 8.8.3
7272 , mtl >= 2.0 && < 3.0
7373 , syb >= 0.7 && < 0.8
7474 , text >= 0.2 && < 1.3
@@ -132,7 +132,7 @@ test-suite tests
132132 , filepath >= 1.2 && < 1.5
133133 , hspec >= 2.0 && < 3.0
134134 , ormolu
135− , path >= 0.6 && < 0.7
135+ , path >= 0.6 && < 0.8
136136 , path-io >= 1.4.2 && < 2.0
137137 , text >= 0.2 && < 1.3
138138 build-tools: hspec-discover >= 2.0 && < 3.0
@@ -150,9 +150,9 @@ executable ormolu
150150 main-is: Main.hs
151151 hs-source-dirs: app
152152 build-depends: base >= 4.12 && < 5.0
153− , ghc-lib-parser >= 8.8.1 && < 8.8.2
153+ , ghc-lib-parser >= 8.8.1 && < 8.8.3
154154 , gitrev >= 1.3 && < 1.4
155− , optparse-applicative >= 0.14 && < 0.15
155+ , optparse-applicative >= 0.14 && < 0.16
156156 , ormolu
157157 , text >= 0.2 && < 1.3
158158 other-modules: Paths_ormolu
tests/Ormolu/PrinterSpec.hs+3−3
@@ -15,7 +15,7 @@ import qualified Data.Text.IO as T
1515import Ormolu
1616import Path
1717import Path.IO
18−import System.FilePath (addExtension, dropExtensions, splitExtensions)
18+import qualified System.FilePath as F
1919import Test.Hspec
2020
2121spec :: Spec
@@ -53,14 +53,14 @@ locateExamples =
5353isInput :: Path Rel File -> Bool
5454isInput path =
5555 let s = fromRelFile path
56− (s', exts) = splitExtensions s
56+ (s', exts) = F.splitExtensions s
5757 in exts == ".hs" && not ("-out" `isSuffixOf` s')
5858
5959-- | For given path of input file return expected name of output.
6060deriveOutput :: Path Rel File -> IO (Path Rel File)
6161deriveOutput path =
6262 parseRelFile $
63− addExtension (dropExtensions (fromRelFile path) ++ "-out") "hs"
63+ F.addExtension (F.dropExtensions (fromRelFile path) ++ "-out") "hs"
6464
6565-- | A version of 'shouldBe' that is specialized to comparing 'Text' values.
6666-- It also prints multi-line snippets in a more readable form.