Skip to content

Commit a182b64

Browse files
committed
Fix build on old Fourmolu versions
1 parent e975c1b commit a182b64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/hls-fourmolu-plugin/src/Ide/Plugin/Fourmolu.hs

+4-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ provider recorder plId ideState typ contents fp fo = ExceptT $ withIndefinitePro
9393
errorMessage = "Failed to load " <> T.pack f <> ": " <> T.pack (show err)
9494

9595
let config =
96-
refineConfig ModuleSource Nothing Nothing Nothing defaultConfig
96+
#if MIN_VERSION_fourmolu(0,13,0)
97+
refineConfig ModuleSource Nothing Nothing Nothing
98+
#endif
99+
defaultConfig
97100
{ cfgDynOptions = map DynOption fileOpts
98101
, cfgFixityOverrides = cfgFileFixities
99102
, cfgRegion = region

0 commit comments

Comments
 (0)