File tree 3 files changed +3
-12
lines changed
3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ library
57
57
hs-source-dirs :
58
58
src
59
59
build-depends :
60
- base >= 4.7 && < 5
60
+ base >= 4.12 && < 5
61
61
, aeson
62
62
, binary
63
63
, bytestring
@@ -66,7 +66,7 @@ library
66
66
, containers
67
67
, data-default
68
68
, deepseq
69
- , Diff
69
+ , Diff
70
70
, directory
71
71
, extra
72
72
, filepath
@@ -79,6 +79,7 @@ library
79
79
, hie-bios >= 0.4
80
80
, hslogger
81
81
, lens
82
+ , ormolu ^>= 0.0.5.0
82
83
, optparse-simple
83
84
, process
84
85
, regex-tdfa >= 1.3.1.0
@@ -96,9 +97,6 @@ library
96
97
exposed-modules :
97
98
Ide.Plugin.Brittany
98
99
99
- if impl(ghc >= 8.6 )
100
- build-depends : ormolu ^>= 0.0.5
101
-
102
100
ghc-options :
103
101
-Wall
104
102
-Wredundant-constraints
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE RecordWildCards #-}
2
- {-# LANGUAGE CPP #-}
3
2
{-# LANGUAGE OverloadedStrings #-}
4
3
{-# LANGUAGE ScopedTypeVariables #-}
5
4
{-# LANGUAGE TypeApplications #-}
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE RecordWildCards #-}
2
- {-# LANGUAGE CPP #-}
3
2
{-# LANGUAGE OverloadedStrings #-}
4
3
{-# LANGUAGE ScopedTypeVariables #-}
5
4
{-# LANGUAGE TypeApplications #-}
@@ -46,7 +45,6 @@ descriptor plId = PluginDescriptor
46
45
-- ---------------------------------------------------------------------
47
46
48
47
provider :: FormattingProvider IO
49
- #if __GLASGOW_HASKELL__ >= 806
50
48
provider _lf ideState typ contents fp _ = do
51
49
let
52
50
fromDyn :: ParsedModule -> IO [DynOption ]
@@ -86,7 +84,3 @@ provider _lf ideState typ contents fp _ = do
86
84
ret (Left err) = Left
87
85
(responseError (T. pack $ " ormoluCmd: " ++ show err) )
88
86
ret (Right new) = Right (makeDiffTextEdit contents new)
89
-
90
- #else
91
- provider _ _ _ _ = return $ Right [] -- NOP formatter
92
- #endif
You can’t perform that action at this time.
0 commit comments