From d2f9972a35ce05ceb8a78893e433ef1df06f73ef Mon Sep 17 00:00:00 2001 From: RyanGlScott Date: Tue, 13 Oct 2015 00:43:32 -0500 Subject: 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 --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index d710852091..20fb883465 100644 --- a/.gitignore +++ b/.gitignore @@ -119,12 +119,12 @@ _darcs/ /libffi/stamp* /libffi/package.conf.install /libffi/package.conf.install.raw -/libraries/bin-package-db/GNUmakefile -/libraries/bin-package-db/ghc.mk /libraries/bootstrapping.conf /libraries/prologue.txt /libraries/doc-index*.html /libraries/frames.html +/libraries/ghc-boot/GNUmakefile +/libraries/ghc-boot/ghc.mk /libraries/haddock-util.js /libraries/hslogo-16.png /libraries/index-frames.html -- cgit v1.2.1