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

Commit 93ab14d

Browse files
committed
Temporal CPP guard of Ormolu hsImport test case
1 parent d81afc6 commit 93ab14d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/functional/FunctionalCodeActionsSpec.hs

+3-4
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ spec = describe "code actions" $ do
218218
, " $ fromMaybe \"Good night, World!\" (Just \"Hello, World!\")"
219219
]
220220
]
221-
describe "formats with ormolu" $ hsImportSpec "ormolu"
221+
#if __GLASGOW_HASKELL__ >= 806
222+
describe "formats with ormolu" $ hsImportSpec "ormolu" -- Ormolu only works with GHC 8.6.x
222223
[ -- Expected output for simple format.
223224
[ "import Control.Monad"
224225
, "import qualified Data.Maybe"
@@ -232,7 +233,6 @@ spec = describe "code actions" $ do
232233
, "main = when True $ putStrLn \"hello\""
233234
]
234235
, -- Multiple import lists, should not introduce multiple newlines.
235-
-- WIP (Haddock issues) ;TODO
236236
[ "import System.IO (hPutStrLn, stdout)"
237237
, "import Control.Monad (when)"
238238
, "import Data.Maybe (fromMaybe)"
@@ -244,7 +244,6 @@ spec = describe "code actions" $ do
244244
, " $ fromMaybe \"Good night, World!\" (Just \"Hello, World!\")"
245245
]
246246
, -- Complex imports for Constructos and functions
247-
-- WIP (Haddock issues) ;TODO
248247
[ "{-# LANGUAGE NoImplicitPrelude #-}"
249248
, "import System.IO (IO, hPutStrLn, stderr)"
250249
, "import Prelude (Bool (..))"
@@ -259,7 +258,7 @@ spec = describe "code actions" $ do
259258
, " $ fromMaybe \"Good night, World!\" (Just \"Hello, World!\")"
260259
]
261260
]
262-
261+
#endif
263262
describe "add package suggestions" $ do
264263
it "adds to .cabal files" $ do
265264
flushStackEnvironment

0 commit comments

Comments
 (0)