Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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 4,830
    • Issues 4,830
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 447
    • Merge requests 447
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #19816

Closed
Open
Created May 10, 2021 by Matthew Pickering@mpickeringDeveloper

SOURCE imported things shouldn't be allowed to be used in TH splices

In a module loop, if you use something which is source imported in a TH splice then you get an error during linking the expression.

It seems this is a bit late during compilation and the error should be raised earlier, because there's never going to be an object file for the .hs-boot file.

https://gist.github.com/522acd04b479217e0e728ada01f309f3

[1 of 3] Compiling C[boot]          ( C.hs-boot, C.o-boot, C.dyn_o )
[2 of 3] Compiling D                ( D.hs, D.o, D.dyn_o )
[3 of 3] Compiling C                ( C.hs, C.o, C.dyn_o )
module C cannot be linked; it is only available as a boot module
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking