Fix missing whitespace in hsimport.hs prettyPrint String

This commit is contained in:
Julian Ospald 2016-04-19 21:05:52 +02:00
parent a61b409486
commit 02f04d92f3
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -8,7 +8,7 @@ main = hsimport $ defaultConfig { prettyPrint = prettyPrint
where where
prettyPrint :: HS.ImportDecl -> String prettyPrint :: HS.ImportDecl -> String
prettyPrint (HS.ImportDecl sloc modname qual _ _ mpkg mas mspec) = prettyPrint (HS.ImportDecl sloc modname qual _ _ mpkg mas mspec) =
"import " ++ (ifStr qual "qualified") ++ "import " ++ (ifStr qual "qualified ") ++
(maybe "" (\pkg -> " \"" ++ pkg ++ "\" ") mpkg) ++ (maybe "" (\pkg -> " \"" ++ pkg ++ "\" ") mpkg) ++
getMN modname ++ (maybe "" (\name -> " as " ++ getMN name) $ mas) ++ getMN modname ++ (maybe "" (\name -> " as " ++ getMN name) $ mas) ++
specprint mspec specprint mspec