Tag: ghc mod

GHC-mod是否必须使用全名来表示types?

我正在尝试使用ghc-mod vim插件进行types/语法检查等。但是,我发现ghc-mod总是在错误消息中使用types的完整path,例如: test.hs|71 col 13 error| Couldn't match type 'Data.Text.Internal.Text' || with '[GHC.Types.Char]' || Expected type: containers-0.5.6.2:Data.Map.Base.Map || [GHC.Types.Char] || ([(integer-gmp-1.0.0.0:GHC.Integer.Type.Integer, || integer-gmp-1.0.0.0:GHC.Integer.Type.Integer)], || containers-0.5.6.2:Data.Set.Base.Set || integer-gmp-1.0.0.0:GHC.Integer.Type.Integer) || Actual type: containers-0.5.6.2:Data.Map.Base.Map || Data.Text.Internal.Text || ([(integer-gmp-1.0.0.0:GHC.Integer.Type.Integer, || integer-gmp-1.0.0.0:GHC.Integer.Type.Integer)], || containers-0.5.6.2:Data.Set.Base.Set || integer-gmp-1.0.0.0:GHC.Integer.Type.Integer) || In the second argument of 'containers-0.5.6.2:Data.Map.Base.map', namely || 'zippedMap' || In the second […]