Skip to content

Commit

Permalink
Remove space when pretty printing SrcLoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mpickering committed Jul 28, 2016
1 parent 49f78b8 commit 5ea0187
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Remove space when pretty printing `SrcLoc`. (#307)

1.18.1 --> 1.18.2
===================

Expand Down
2 changes: 1 addition & 1 deletion src/Language/Haskell/Exts/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ instance Pretty (Asst l) where
-- Pretty print a source location, useful for printing out error messages
instance Pretty SrcLoc where
pretty srcLoc =
return $ P.hsep [ colonFollow (P.text $ srcFilename srcLoc)
return $ P.hcat [ colonFollow (P.text $ srcFilename srcLoc)
, colonFollow (P.int $ srcLine srcLoc)
, P.int $ srcColumn srcLoc
]
Expand Down

0 comments on commit 5ea0187

Please sign in to comment.