Skip to content

Commit e2968da

Browse files
committed
Bump version bounds
1 parent ca8cb04 commit e2968da

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

ormolu.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import qualified Data.Text.IO as T
1515
import Ormolu
1616
import Path
1717
import Path.IO
18-
import System.FilePath (addExtension, dropExtensions, splitExtensions)
18+
import qualified System.FilePath as F
19+
1920
import Test.Hspec
2021

2122
spec :: Spec
@@ -53,14 +54,14 @@ locateExamples =
5354
isInput :: Path Rel File -> Bool
5455
isInput path =
5556
let s = fromRelFile path
56-
(s', exts) = splitExtensions s
57+
(s', exts) = F.splitExtensions s
5758
in exts == ".hs" && not ("-out" `isSuffixOf` s')
5859

5960
-- | For given path of input file return expected name of output.
6061
deriveOutput :: Path Rel File -> IO (Path Rel File)
6162
deriveOutput path =
6263
parseRelFile $
63-
addExtension (dropExtensions (fromRelFile path) ++ "-out") "hs"
64+
F.addExtension (F.dropExtensions (fromRelFile path) ++ "-out") "hs"
6465

6566
-- | A version of 'shouldBe' that is specialized to comparing 'Text' values.
6667
-- It also prints multi-line snippets in a more readable form.

0 commit comments

Comments
 (0)