#5661: Wrong error message on attempted import of undefined record field
---------------------------------+------------------------------------------
    Reporter:  YitzGale          |       Owner:              
        Type:  bug               |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  7.0.2             |    Keywords:              
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by michalt):

 I've tested with some newer GHC and I'm getting:
 {{{
 > ghci B.hs
 GHCi, version 7.2.2: http://www.haskell.org/ghc/  :? for help
 [..]
 [2 of 2] Compiling B                ( B.hs, interpreted )

 B.hs:2:11: Module `A' does not export `AData(wrong)'
 Failed, modules loaded: A.
 *A>
 Leaving GHCi.
 }}}
 and
 {{{
 > ~/dev/ghc-work/inplace/bin/ghc-stage2 --interactive B.hs
 GHCi, version 7.3.20111125: http://www.haskell.org/ghc/  :? for help
 [..]
 [2 of 2] Compiling B                ( B.hs, interpreted )

 B.hs:2:11: Module `A' does not export `AData(wrong)'
 Failed, modules loaded: A.
 *A>
 Leaving GHCi.
 }}}
 So everything seems to work as expected.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5661#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to