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

"expand" doesn't work on GHC 7.6.2 #109

Closed
eagletmt opened this issue Mar 14, 2013 · 2 comments
Closed

"expand" doesn't work on GHC 7.6.2 #109

eagletmt opened this issue Mar 14, 2013 · 2 comments

Comments

@eagletmt
Copy link
Contributor

The example situation is again https://gist.github.com/eagletmt/5143729.

% ghc --numeric-version
7.6.2
% ghc-mod expand Bar.hs
ghc-mod:0:0:Probably mutual module import occurred

It works on GHC 7.4.2.

% ghc --numeric-version
7.4.2
% ghc-mod expand Bar.hs
Bar.hs:5:7-10: Splicing expression
    foo ======> "foo"

And even on GHC 7.6.2, -ddump-splices shows splicing messages with correct SrcSpan.

% ghc --numeric-version
7.6.2
% runghc --ddump-splices Bar.hs
Bar.hs:5:7-10: Splicing expression
    foo ======> "foo"

Bar.hs:1:33:
    Not in scope: `main'
    Perhaps you meant `min' (imported from Prelude)
@kazu-yamamoto
Copy link
Collaborator

Is this the same problem as #92?

@eagletmt
Copy link
Contributor Author

Yes. Sorry for duplication.

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