Cleanup errors and logging a bit

This commit is contained in:
Daniel Gröber
2015-03-04 21:48:21 +01:00
parent bc71877dcf
commit f0ea445a9b
41 changed files with 242 additions and 456 deletions

View File

@@ -17,6 +17,8 @@
module Language.Haskell.GhcMod.Pretty where
import Control.Arrow hiding ((<+>))
import Data.Char
import Data.List
import Text.PrettyPrint
import Language.Haskell.GhcMod.Types
@@ -56,7 +58,7 @@ warnDoc :: Doc -> Doc
warnDoc d = text "Warning" <+>: d
strDoc :: String -> Doc
strDoc str = doc str
strDoc str = doc (dropWhileEnd isSpace str)
where
doc :: String -> Doc
doc = lines