#10796: Illegal data constructor name: `fromList' ... When splicing a TH expression -------------------------------------+------------------------------------- Reporter: erisco | Owner: RyanGlScott Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Template Haskell | Version: 7.8.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1313 -------------------------------------+------------------------------------- Comment (by Austin Seipp <austin@…>): In [changeset:"d2f9972a35ce05ceb8a78893e433ef1df06f73ef/ghc" d2f9972/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="d2f9972a35ce05ceb8a78893e433ef1df06f73ef" Make dataToQa aware of Data instances which use functions to implement toConstr Trac #10796 exposes a way to make `template-haskell`'s `dataToQa` function freak out if using a `Data` instance that produces a `Constr` (by means of `toConstr`) using a function name instead of a data constructor name. While such `Data` instances are somewhat questionable, they are nevertheless present in popular libraries (e.g., `containers`), so we can at least make `dataToQa` aware of their existence. In order to properly distinguish strings which represent variables (as opposed to data constructors), it was necessary to move functionality from `Lexeme` (in `ghc`) to `GHC.Lexeme` in a new `ghc-boot` library (which was previously named `bin-package-db`). Reviewed By: goldfire, thomie Differential Revision: https://phabricator.haskell.org/D1313 GHC Trac Issues: #10796 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10796#comment:11> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler