#5307: Problems with new cyclic dependency error message
---------------------------------+------------------------------------------
    Reporter:  simonmar          |        Owner:  simonpj     
        Type:  bug               |       Status:  new         
    Priority:  highest           |    Milestone:  7.2.1       
   Component:  Compiler          |      Version:  7.0.3       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonpj@…):

 commit e85902183d290b3ee8bdd242d10bf60b963f3f28
 {{{
 Author: Simon Peyton Jones <[email protected]>
 Date:   Fri Jul 22 08:56:42 2011 +0100

     Implement a findCycle function in Digraph,
     and use it to report module loops nicely

     This fixes Trac #5307. Now we get

         Module imports form a cycle:
                  module `M8' (.\M8.hs)
                 imports `M1' (M1.hs)
           which imports `M9' (.\M9.hs-boot)
           which imports `M8' (.\M8.hs)

     And the algorithm is linear time.

  compiler/main/GhcMake.hs   |   67 +++++++++++++---------------------
  compiler/utils/Digraph.lhs |   85
 +++++++++++++++++++++++++++++++++++++++----
  compiler/utils/Util.lhs    |    6 +++-
  3 files changed, 107 insertions(+), 51 deletions(-)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5307#comment:4>
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