We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c69ba63 commit c640f0aCopy full SHA for c640f0a
plugins/hls-fourmolu-plugin/src/Ide/Plugin/Fourmolu.hs
@@ -5,6 +5,7 @@
5
{-# LANGUAGE OverloadedLabels #-}
6
{-# LANGUAGE OverloadedStrings #-}
7
{-# LANGUAGE TypeApplications #-}
8
+{-# LANGUAGE CPP #-}
9
10
module Ide.Plugin.Fourmolu (
11
descriptor,
@@ -101,7 +102,11 @@ provider recorder plId ideState typ contents fp fo = withIndefiniteProgress titl
101
102
else do
103
let format fourmoluConfig =
104
bimap (mkError . show) (makeDiffTextEdit contents)
105
+#if MIN_VERSION_fourmolu(0,11,0)
106
+ <$> try @OrmoluException (ormolu config fp' contents)
107
+#else
108
<$> try @OrmoluException (ormolu config fp' (T.unpack contents))
109
+#endif
110
where
111
printerOpts = cfgFilePrinterOpts fourmoluConfig
112
config =
0 commit comments