[GHC] #13234: Yesod and Persistent cause compiler panic

#13234: Yesod and Persistent cause compiler panic ----------------------------------------+--------------------------------- Reporter: cheshircat | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Keywords: | Operating System: Linux Architecture: Unknown/Multiple | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: ----------------------------------------+--------------------------------- Hello, This is my first bug report for GHC, so excuse me if I don't have all the formatting correct, and please tell me how to correct it! I am working on a yesod app, and upon running cabal run, I got this message: {{{#!hs Preprocessing executable 'creative-index-org' for creative-index- org-0.0.0... [1 of 1] Compiling Main ( Main.hs, dist/build/creative-index- org/creative-index-org-tmp/Main.o ) <no location info>: error: ghc: panic! (the 'impossible' happened) (GHC version 8.0.2 for x86_64-unknown-linux): initTc: unsolved constraints WC {wc_insol = [W] person_aodw :: t_aodv[tau:1] (CHoleCan: person)} Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} I have attached Main.hs, the cabal file, and a nix-shell file (in case you use nix) that contains the environment I was running this in. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13234 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13234: Yesod and Persistent cause compiler panic ---------------------------------+---------------------------------------- Reporter: cheshircat | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Changes (by cheshircat): * Attachment "creative-index-org.cabal" added. Cabal file -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13234 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13234: Yesod and Persistent cause compiler panic ---------------------------------+---------------------------------------- Reporter: cheshircat | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Changes (by cheshircat): * Attachment "Main.hs" added. Haskell file with code that causes the bug -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13234 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13234: Yesod and Persistent cause compiler panic ---------------------------------+---------------------------------------- Reporter: cheshircat | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Changes (by cheshircat): * Attachment "shell.nix" added. shell.nix file that recreates my environment (note, I am on nixos- unstable) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13234 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13234: Yesod and Persistent cause compiler panic ---------------------------------+---------------------------------------- Reporter: cheshircat | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: duplicate | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #12921 | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Changes (by RyanGlScott): * status: new => closed * resolution: => duplicate * related: => #12921 Comment: Thanks for the bug. This is a duplicate of #12921, which has been fixed upstream and will be included in the soon-to-be-released GHC 8.2. Until then, note that this bug is caused by out-of-scope identifiers being used in certain places. In your case, it looks like the out-of-scope identifier is named `person`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13234#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC