Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GhcMod window word wrap #109

Open
freeman42x opened this issue Jul 6, 2015 · 1 comment
Open

GhcMod window word wrap #109

freeman42x opened this issue Jul 6, 2015 · 1 comment

Comments

@freeman42x
Copy link

It would be nice for the GhcMod window to have word wrap as an option with automatic reflow.

@lpiter
Copy link

lpiter commented Jul 23, 2015

My problem is somewhat related. Ghc-modi's output is not split into lines properly - everything is in a single line.

check src/Main.hs
src/Main.hs:126:10:Couldn't match type ‘[()]’ with ‘()’ Expected type: IO ()   Actual type: IO [()] In the expression: mapM readArg args In an equation for ‘main’:     main       = mapM readArg args       where           args = ["12.33", ....]           readArg a = putStrLn $ show a ++ " --> " ++ show (readExpr a)
OK

Meanwhile, ghc-mod outputs

src/Main.hs:122:10:Couldn't match type ‘[()]’ with ‘()’
Expected type: IO ()
  Actual type: IO [()]
In the expression: mapM readArg args
In an equation for ‘main’:
    main
      = mapM readArg args
      where
          args = ["12.33", ....]
          readArg a = putStrLn $ show a ++ " --> " ++ show (readExpr a)

This is the case with bare ghc-modi as well, not just via the plugin. From a quick look, it seems that lines are ended with '\0' instead of '\n'.

atsky added a commit that referenced this issue Aug 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants