@@ -218,7 +218,8 @@ spec = describe "code actions" $ do
218
218
, " $ fromMaybe \" Good night, World!\" (Just \" Hello, World!\" )"
219
219
]
220
220
]
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
222
223
[ -- Expected output for simple format.
223
224
[ " import Control.Monad"
224
225
, " import qualified Data.Maybe"
@@ -232,7 +233,6 @@ spec = describe "code actions" $ do
232
233
, " main = when True $ putStrLn \" hello\" "
233
234
]
234
235
, -- Multiple import lists, should not introduce multiple newlines.
235
- -- WIP (Haddock issues) ;TODO
236
236
[ " import System.IO (hPutStrLn, stdout)"
237
237
, " import Control.Monad (when)"
238
238
, " import Data.Maybe (fromMaybe)"
@@ -244,7 +244,6 @@ spec = describe "code actions" $ do
244
244
, " $ fromMaybe \" Good night, World!\" (Just \" Hello, World!\" )"
245
245
]
246
246
, -- Complex imports for Constructos and functions
247
- -- WIP (Haddock issues) ;TODO
248
247
[ " {-# LANGUAGE NoImplicitPrelude #-}"
249
248
, " import System.IO (IO, hPutStrLn, stderr)"
250
249
, " import Prelude (Bool (..))"
@@ -259,7 +258,7 @@ spec = describe "code actions" $ do
259
258
, " $ fromMaybe \" Good night, World!\" (Just \" Hello, World!\" )"
260
259
]
261
260
]
262
-
261
+ #endif
263
262
describe " add package suggestions" $ do
264
263
it " adds to .cabal files" $ do
265
264
flushStackEnvironment
0 commit comments