Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,273
    • Issues 4,273
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 413
    • Merge Requests 413
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #6025

Closed
Open
Opened Apr 19, 2012 by scooty-puff@trac-scooty-puff

GHC Panic On Recompile

Perhaps related to DataKinds or ConstraintKinds, but on rebuild without a clean, the following error is emitted:

Building glyph-0.1...
Preprocessing executable 'glyph' for glyph-0.1...
[34 of 60] Compiling Language.Glyph.HM.InferType ( src/Language/Glyph/HM/InferType.hs, dist/build/glyph/glyph-tmp/Language/Glyph/HM/InferType.p_o )
ghc: panic! (the 'impossible' happened)
  (GHC version 7.4.1 for x86_64-unknown-linux):
	tyThingTyCon
    Data constructor `main:Language.Glyph.Type.Normal{d r3iU}'

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

This can be recreated by building this cabal project:

https://github.com/sonyandy/glyph/tree/ghc-panic

To recreate:

git clone https://github.com/sonyandy/glyph/tree/ghc-panic

cabal configure

cabal build

touch src/Language/Glyph/HM/InferType.hs

cabal build
Edited Mar 09, 2019 by Simon Peyton Jones
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#6025