eagletmt / ghcmod-vim

Happy Haskell programming on Vim, powered by ghc-mod
http://www.vim.org/scripts/script.php?script_id=4473
433 stars 59 forks source link

GhcModExpand is broken #30

Closed yuga closed 11 years ago

yuga commented 11 years ago

The result of GhcModExpand is contaminated by "^@", such as follows:


src/Database/Relational/Schema/SQLServerSyscat/Columns.hs|1 col 1| Splicing declarations^@    defineTableTypesAndRecordDefault^@      "sys"^@      "columns"^@      [("object_id", [t| Int32 |]), ("name", [t| Maybe String |]),^@       ("column_id", [t| Int32 |]), ("user_type_id", [t| Int32 |]),^@       ("is_nullable", [t| Maybe Bool |])]^@      [derivingShow]^@  ======>^@    /Users/murayama/program/Haskell/DB/sqlserver/src/Database/Relational/Schema/SQLServerSyscat/Columns.hs:(9,3)-(65,16)^@    data Columns^@      = Columns {objectId :: !Int32,^@                 name :: !(Maybe String),^@                 columnId :: !Int32,^@                 userTypeId :: !Int32,^@                 isNullable :: !(Maybe Bool)}^@      deriving (Show)^@    tableOfColumns :: Table Columns^@    tableOfColumns^@      = table^@          "SYS.columns"^@          ["object_id", "name", "column_id", "user_type_id", "is_nullable"]^@    columns :: Relation () Columns^@    columns = table tableOfColumns^@    objectId' :    

OS X 10.8.3 GHC: 7.6.3 Haskell Platform: 2013.2.0.0 ghc-mod: 2.0.3 VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 23 2012 13:50:52) ghcmod-vim: 1.0.0 (2013-04-25)

eagletmt commented 11 years ago

This issue should be solved by ghc-mod >= 2.1.2 and #32.