[GHC] #11637: single-module recursion and import aliases
GHC
ghc-devs at haskell.org
Wed Feb 24 21:40:00 UTC 2016
#11637: single-module recursion and import aliases
-------------------------------------+-------------------------------------
Reporter: dmwit | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by ezyang):
We disabled self-boot imports in GHC 8.0, in part because cases like this
didn't work and would be annoying to make work:
{{{
ezyang at sabre:~$ ghc-8.0 --make Foo.hs
[1 of 2] Compiling Foo[boot] ( Foo.hs-boot, Foo.o-boot )
[2 of 2] Compiling Foo ( Foo.hs, Foo.o )
Foo.hs:3:1: error: A module cannot import itself: Foo
}}}
Is this something you can easily work around, or something you quite need?
If it's the latter, we can reconsider how to make this work out correctly
(but the fix is nontriival.)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11637#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list