[GHC] #14458: ghc: panic! -- initTc: unsolved constraints

GHC ghc-devs at haskell.org
Sun Nov 12 23:05:29 UTC 2017


#14458: ghc: panic! -- initTc: unsolved constraints
-------------------------------------+-------------------------------------
        Reporter:  lijero            |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:  duplicate         |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #13106            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by RyanGlScott):

 * status:  new => closed
 * resolution:   => duplicate
 * related:   => #13106


Comment:

 Thanks for the bug report. This is a duplicate of #13106, and has been
 fixed in GHC 8.2:

 {{{
 $ /opt/ghc/8.2.1/bin/ghc Bug.hs
 [1 of 1] Compiling Main             ( Bug.hs, Bug.o )

 Bug.hs:1:1: error:
     The IO action ‘main’ is not defined in module ‘Main’
   |
 1 | module Main where
   | ^

 Bug.hs:17:36: error:
     • Variable not in scope:
         parse
           :: [Main.Token]
              -> ([Main.Token] -> Main.Ast -> Maybe Main.Ast) -> Maybe
 Main.Ast
     • Perhaps you meant ‘parse'’ (line 14)
    |
 17 |   parse' xs (\ xs' f -> AApp f <$> parse xs' fail)
    |                                    ^^^^^

 Bug.hs:19:36: error:
     • Variable not in scope:
         parse
           :: [Main.Token]
              -> ([Main.Token] -> Main.Ast -> Maybe Main.Ast) -> Maybe
 Main.Ast
     • Perhaps you meant ‘parse'’ (line 14)
    |
 19 |   parse' xs (\ xs' a -> ALam a <$> parse xs' fail)
    |                                    ^^^^^
 }}}

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


More information about the ghc-tickets mailing list