File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11{-# LANGUAGE RecordWildCards #-}
2- {-# LANGUAGE CPP #-}
32{-# LANGUAGE OverloadedStrings #-}
43{-# LANGUAGE ScopedTypeVariables #-}
54{-# LANGUAGE TypeApplications #-}
Original file line number Diff line number Diff line change 11{-# LANGUAGE RecordWildCards #-}
2- {-# LANGUAGE CPP #-}
32{-# LANGUAGE OverloadedStrings #-}
43{-# LANGUAGE ScopedTypeVariables #-}
54{-# LANGUAGE TypeApplications #-}
@@ -46,7 +45,6 @@ descriptor plId = PluginDescriptor
4645-- ---------------------------------------------------------------------
4746
4847provider :: FormattingProvider IO
49- #if __GLASGOW_HASKELL__ >= 806
5048provider _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
You can’t perform that action at this time.
0 commit comments