Skip to content

Commit 1f56104

Browse files
committed
Remove CPP directives supporting GHC 8.4
1 parent 3edfaeb commit 1f56104

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

haskell-language-server.cabal

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ library
5757
hs-source-dirs:
5858
src
5959
build-depends:
60-
base >=4.7 && <5
60+
base >=4.12 && <5
6161
, aeson
6262
, binary
6363
, bytestring
@@ -66,7 +66,7 @@ library
6666
, containers
6767
, data-default
6868
, deepseq
69-
, Diff
69+
, Diff
7070
, directory
7171
, extra
7272
, filepath
@@ -79,6 +79,7 @@ library
7979
, hie-bios >= 0.4
8080
, hslogger
8181
, lens
82+
, ormolu ^>= 0.0.5.0
8283
, optparse-simple
8384
, process
8485
, regex-tdfa >= 1.3.1.0
@@ -96,9 +97,6 @@ library
9697
exposed-modules:
9798
Ide.Plugin.Brittany
9899

99-
if impl(ghc >= 8.6)
100-
build-depends: ormolu ^>= 0.0.5
101-
102100
ghc-options:
103101
-Wall
104102
-Wredundant-constraints

src/Ide/Plugin/Formatter.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE RecordWildCards #-}
2-
{-# LANGUAGE CPP #-}
32
{-# LANGUAGE OverloadedStrings #-}
43
{-# LANGUAGE ScopedTypeVariables #-}
54
{-# LANGUAGE TypeApplications #-}

src/Ide/Plugin/Ormolu.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE RecordWildCards #-}
2-
{-# LANGUAGE CPP #-}
32
{-# LANGUAGE OverloadedStrings #-}
43
{-# LANGUAGE ScopedTypeVariables #-}
54
{-# LANGUAGE TypeApplications #-}
@@ -46,7 +45,6 @@ descriptor plId = PluginDescriptor
4645
-- ---------------------------------------------------------------------
4746

4847
provider :: FormattingProvider IO
49-
#if __GLASGOW_HASKELL__ >= 806
5048
provider _lf ideState typ contents fp _ = do
5149
let
5250
fromDyn :: ParsedModule -> IO [DynOption]
@@ -86,7 +84,3 @@ provider _lf ideState typ contents fp _ = do
8684
ret (Left err) = Left
8785
(responseError (T.pack $ "ormoluCmd: " ++ show err) )
8886
ret (Right new) = Right (makeDiffTextEdit contents new)
89-
90-
#else
91-
provider _ _ _ _ = return $ Right [] -- NOP formatter
92-
#endif

0 commit comments

Comments
 (0)