[GHC] #9997: "A module cannot import itself"-regression

GHC ghc-devs at haskell.org
Fri Jan 16 12:56:05 UTC 2015


#9997: "A module cannot import itself"-regression
-------------------------------------+-------------------------------------
              Reporter:  hvr         |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  highest     |         Milestone:  7.10.1
             Component:  Compiler    |           Version:  7.10.1-rc1
              Keywords:  regression  |  Operating System:  Unknown/Multiple
          Architecture:              |   Type of failure:  None/Unknown
  Unknown/Multiple                   |        Blocked By:
             Test Case:              |   Related Tickets:
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 The following module could be compiled with GHC 7.8.4 and older, but fails
 with GHC 7.10:

 {{{#!hs
 {-# LANGUAGE PackageImports #-}

 module Control.DeepSeq where

 import "deepseq" Control.DeepSeq
 }}}

 {{{
 $ ghci -Wall DeepSeq.hs
 GHCi, version 7.10.0.20141227: http://www.haskell.org/ghc/  :? for help
 [1 of 1] Compiling Control.DeepSeq  ( DeepSeq.hs, interpreted )

 DeepSeq.hs:5:1: A module cannot import itself: Control.DeepSeq
 Failed, modules loaded: none.
 λ:2>
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9997>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list