diff --git a/stack-8.8.1.yaml b/stack-8.8.1.yaml index 7e6e43360..40dac19c0 100644 --- a/stack-8.8.1.yaml +++ b/stack-8.8.1.yaml @@ -22,6 +22,8 @@ extra-deps: - haskell-src-exts-1.21.1 - ilist-0.3.1.0 - monad-dijkstra-0.1.1.2 +- ormolu-0.0.3.0 +- optparse-applicative-0.15.1.0 flags: haskell-ide-engine: @@ -29,8 +31,8 @@ flags: hie-plugin-api: pedantic: true - -# allow-newer: true +# Required to build ormolu with optparse-applicative-0.15.1.0 +allow-newer: true nix: packages: [ icu libcxx zlib ] diff --git a/test/functional/FormatSpec.hs b/test/functional/FormatSpec.hs index 704d62a39..bbb8052cd 100644 --- a/test/functional/FormatSpec.hs +++ b/test/functional/FormatSpec.hs @@ -101,8 +101,10 @@ spec = do doc <- openDoc "Format.hs" "haskell" formatDoc doc (FormattingOptions 2 True) docContent <- documentContents doc + let formatted = liftIO $ docContent `shouldBe` formattedOrmolu case ghcVersion of - GHC86 -> liftIO $ docContent `shouldBe` formattedOrmolu + GHC88 -> formatted + GHC86 -> formatted _ -> liftIO $ docContent `shouldBe` unchangedOrmolu