Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 5.5k
    • Issues 5.5k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 636
    • Merge requests 636
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • 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
  • #1065
Closed
Open
Issue created Dec 20, 2006 by sfh23@cornell.edu@trac-sfh23

The impossible happened (Template Haskell)

Error message during compilation:

ghc-6.6: panic! (the 'impossible' happened)
  (GHC version 6.6 for i386-unknown-linux):
        addImpDecls

This occurrs with the following function definition:

makeRowContent :: String -> [(String, SqlDecl)] -> Q [Dec]
makeRowContent tblName lst = do
  [d| data Tbl = Tbl
      instance TableContent Tbl where
        tableName Tbl = $(litE $ StringL tblName)
      $(dataD [] (mkName "Row") [] [recC "Row" []] [])
      instance RowContent Row where
        rowValueString x = "rowValue"
        rowNameString x = "rowName"
        tblName x = $(litE $ StringL tblName) |]
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