mirror of
https://github.com/natefaubion/purescript-tidy.git
synced 2024-11-29 06:46:46 +03:00
format trailing module comments
This commit is contained in:
parent
6270b6b52c
commit
fab3e52e97
@ -25,7 +25,7 @@ main = do
|
||||
let opts = ChildProcess.defaultExecSyncOptions { cwd = Just tmpPath }
|
||||
let genCmd = "node -e \"require('" <> cwdPath <> "/output/Main/index.js').main()\" generate-operators '.spago/*/*/src/**/*.purs'"
|
||||
|
||||
writeTextFile UTF8 (Path.concat [ tmpPath, "spago.dhall" ]) defaultSpagoDhall
|
||||
writeTextFile UTF8 (Path.concat [ tmpPath, "spago.dhall" ]) defaultSpagoDhall
|
||||
_ <- ChildProcess.execSync "spago install" opts
|
||||
output <- Buffer.toString UTF8 =<< ChildProcess.execSync genCmd opts
|
||||
|
||||
|
@ -159,6 +159,7 @@ formatModule conf (Module { header: ModuleHeader header, body: ModuleBody body }
|
||||
|
||||
, joinWithMap break (formatImportDecl conf) header.imports
|
||||
, joinWithMap break (formatDecl conf) body.decls
|
||||
, foldr (formatComment leadingLineComment) mempty body.trailingComments
|
||||
]
|
||||
|
||||
formatExport :: forall e a. Format (Export e) e a
|
||||
|
Loading…
Reference in New Issue
Block a user