Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit dbbaf4d

Browse files
authored
Merge pull request #1586 from jneira/ormolu-allow-newer-stack
Allow newer optparse-applicative for ormolu (stack version) Follow up of #1583
2 parents 2a2de61 + f143685 commit dbbaf4d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

stack-8.8.1.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ extra-deps:
2222
- haskell-src-exts-1.21.1
2323
- ilist-0.3.1.0
2424
- monad-dijkstra-0.1.1.2
25+
- ormolu-0.0.3.0
26+
- optparse-applicative-0.15.1.0
2527

2628
flags:
2729
haskell-ide-engine:
2830
pedantic: true
2931
hie-plugin-api:
3032
pedantic: true
3133

32-
33-
# allow-newer: true
34+
# Required to build ormolu with optparse-applicative-0.15.1.0
35+
allow-newer: true
3436

3537
nix:
3638
packages: [ icu libcxx zlib ]

test/functional/FormatSpec.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ spec = do
101101
doc <- openDoc "Format.hs" "haskell"
102102
formatDoc doc (FormattingOptions 2 True)
103103
docContent <- documentContents doc
104+
let formatted = liftIO $ docContent `shouldBe` formattedOrmolu
104105
case ghcVersion of
105-
GHC86 -> liftIO $ docContent `shouldBe` formattedOrmolu
106+
GHC88 -> formatted
107+
GHC86 -> formatted
106108
_ -> liftIO $ docContent `shouldBe` unchangedOrmolu
107109

108110

0 commit comments

Comments
 (0)