Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

ghc-mod expand incompatibility #128

Closed
eagletmt opened this issue Jun 8, 2013 · 2 comments
Closed

ghc-mod expand incompatibility #128

eagletmt opened this issue Jun 8, 2013 · 2 comments

Comments

@eagletmt
Copy link
Contributor

eagletmt commented Jun 8, 2013

% ghc --numeric-version
7.4.2
% ghc-mod expand Fuga.hs
Fuga.hs:(6,8)-(10,2): Splicing expression
    "\
    \hoge\
    \fuga\
    \piyo"
  ======>
    "\
    \hoge\
    \fuga\
    \piyo"
Fuga.hs:13:8-31: Splicing expression
    " hoge fuga piyo " ======> " hoge fuga piyo "
% ghc --numeric-version
7.6.1
% ghc-mod expand Fuga.hs
Fuga.hs:(6,8)-(10,2): Splicing expression    "\    \hoge\    \fuga\    \piyo"  ======>    "\    \hoge\    \fuga\    \piyo"
Fuga.hs:13:8-31: Splicing expression    " hoge fuga piyo " ======> " hoge fuga piyo "

With 7.6.x, the output contains NUL characters instead of LF. Related to #92?

@eagletmt
Copy link
Contributor Author

eagletmt commented Jun 8, 2013

@kazu-yamamoto
Copy link
Collaborator

I'm not sure what is a correct solution for this. But I guess the -b option helps you.

% ghc-mod expand -b "\n" Fuga.hs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants