
#9032: Panic with self-import -------------------------------------+------------------------------------- Reporter: jstolarek | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Template | Version: 7.8.2 Haskell | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: Compile- | Related Tickets: #1012 time crash | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by simonpj): Replying to [comment:5 monoidal]:
It's already an error (`Module imports form a cycle: module 'X' imports itself`), but in this case the self-import somehow gives a panic.
Good point. So it's already an error; albeit one that is only reported with `--make`. We should get a decent error in one-shot mode too. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9032#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler