[Haskell-beginners] Vim + Syntastic + ghc-mod: over-verbose error messages

Matthew Moppett matthewmoppett at gmail.com
Tue Feb 3 09:30:20 UTC 2015


I'm not sure if this is the right forum to raise this issue, but:

Trying out the Syntastic plugin in Vim, I've found that it displays
confusingly over-verbose error messages that contain unnecessary
information about the module location of identifiers -- e.g.:

Config.hs|13 col 7 error| Couldn't match type `(Config.ConfigElem,
GHC.Base.String)' with `[GHC.Types.Char]'Expected type: [GHC.Base.String]
-> containers-0.5.0.0:Data.Map.Base.Map Config.ConfigElem GHC.Base.String
Actual type: [(Config.ConfigElem, GHC.Base.String)] ->
containers-0.5.0.0:Data.Map.Base.Map Config.ConfigElem GHC.Base.StringIn
the expression: Data.Map.Strict.fromList :: [GHC.Base.String] ->
containers-0.5.0.0:Data.Map.Base.Map Config.ConfigElem GHC.Base.StringIn an
equation for `Config.foo': Config.foo = Data.Map.Strict.fromList ::
[GHC.Base.String] -> containers-0.5.0.0:Data.Map.Base.Map Config.ConfigElem
GHC.Base.String


Syntastic uses the output from "ghc-mod check" to generate this, and in
turn I think ghc-mod relies on ghc, since options can be passed to ghc from
ghc-mod using the -g option flag. Does anyone know of a way to modify the
behaviour of Syntastic/ghc-mod/ghc to produce output that's more readable?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20150203/c6232ca0/attachment.html>


More information about the Beginners mailing list