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
  • #7445

Closed
Open
Opened Nov 24, 2012 by erikd@trac-erikd

template-haskell : need a good error message instead of just an unexplained panic

Will attach two files to this bug, quasi-arithmetic.hs and QuasiArith.hs.

Running:

ghc --make quasi-arithmetic.hs -o quasi-arithmetic

on these files results in:

ghc: panic! (the 'impossible' happened)
  (GHC version 7.4.2 for x86_64-unknown-linux):
        mkUsage
    main:QuasiArith BinopExpr{d}[(0B, base:System.IO.print{v 0B}),
                                  (32I, ghc-prim:GHC.Types.IO{tc 32I}),
                                  (40, ghc-prim:GHC.Tuple.(){(w) tc 40}),
                                  (rwP, main:QuasiArith.MulOp{d rwP}),
                                  (rwR, main:QuasiArith.AddOp{d rwR}),
                                  (rwU, main:QuasiArith.BinopExpr{d rwU}),
                                  (rwW, main:QuasiArith.IntExpr{d rwW}),
                                  (r2Ha, main:Main.main{v r2Ha})]
Trac metadata
Trac field Value
Version 7.4.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Template Haskell
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited Mar 09, 2019 by erikd
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#7445