
#13608: Expose the type of quasiquotes -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez | facundo.dominguez Type: bug | Status: patch Priority: normal | Milestone: Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: QuasiQuotes Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: 12778 | Differential Rev(s): Phab:D3610 Wiki Page: | -------------------------------------+------------------------------------- Comment (by facundo.dominguez):
`addPostProcessor :: (CoreExpr -> IO (CoreExpr, [CoreBind])) -> Q ()`
Will this require linking ghc with the application? `CoreExpr` and `CoreBind` are not exposed in a leaner library AFAIK. If it were not for this problem, it could be useful. Only the compiler needs to execute this code, so perhaps there is a way. I just proposed an alternative in https://ghc.haskell.org/trac/ghc/ticket/12778#comment:11 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13608#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler