"A module cannot import itself"-regression
The following module could be compiled with GHC 7.8.4 and older, but fails with GHC 7.10:
{-# 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>
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.1-rc1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | highest |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | ezyang |
Operating system | |
Architecture |