Skip to content
Snippets Groups Projects
Unverified Commit 5be57c0d authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Fix trailing whitespace in .ghc.environment files.

parent a9c4d58a
No related branches found
No related tags found
No related merge requests found
......@@ -603,7 +603,9 @@ renderGhcEnvironmentFile =
renderGhcEnvironmentFileEntry :: GhcEnvironmentFileEntry -> String
renderGhcEnvironmentFileEntry entry = case entry of
GhcEnvFileComment comment -> format comment
where format = intercalate "\n" . map ("-- " ++) . lines
where format = intercalate "\n" . map ("--" <+>) . lines
pref <+> "" = pref
pref <+> str = pref ++ " " ++ str
GhcEnvFilePackageId pkgid -> "package-id " ++ prettyShow pkgid
GhcEnvFilePackageDb pkgdb ->
case pkgdb of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment