Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,263
    • Issues 5,263
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 572
    • Merge requests 572
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #6025
Closed
Open
Issue created 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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking