
#16177: Rename Q (TExp a) to Code a -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 8.6.3 Resolution: | Keywords: | TypedTemplateHaskell Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mpickering): Unsafe meaning that running a splice can fail in any manner. Under that definition there are a few unsafe operations `qAddTopDecls`, `qRunIO`, `qReport` come immediately to mind. The other `qReify*` operations should be discouraged as well as they go against how people should be writing their typed template haskell programs (in my opinion). Dispatching based of these I guess is possible in a safe manner but I'm not sure how you could do much usefully as you have to construct a `Name` in order to use them. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16177#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler