diff options
author | RyanGlScott <ryan.gl.scott@gmail.com> | 2015-10-13 00:43:32 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2015-10-13 00:43:42 -0500 |
commit | d2f9972a35ce05ceb8a78893e433ef1df06f73ef (patch) | |
tree | bc3cee0ec99aacd64298993fde590c017734c6e6 /rules | |
parent | 94ef79a766a1f58a5daadcf7dbb342812cd1a9bd (diff) | |
download | haskell-d2f9972a35ce05ceb8a78893e433ef1df06f73ef.tar.gz |
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
Diffstat (limited to 'rules')
-rw-r--r-- | rules/foreachLibrary.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rules/foreachLibrary.mk b/rules/foreachLibrary.mk index cdd54962db..1a91cd9d77 100644 --- a/rules/foreachLibrary.mk +++ b/rules/foreachLibrary.mk @@ -18,7 +18,7 @@ # Except! If there's a libraries/foo/ghc-packages then it calls # $(call $1,foo/bar,tag) # for each word 'bar' in libraries/foo/ghc-packages. -# +# # We use an FEL_ prefix for the variable names, to avoid trampling on # other variables, as make has no concept of local variables. @@ -28,7 +28,7 @@ # repositories of their own: # # - base -# - bin-package-db +# - ghc-boot # - ghc-prim # - integer-gmp # - integer-simple @@ -37,7 +37,7 @@ define foreachLibrary # $1 = function to call for each library # We will give it the package path and the tag as arguments -$$(foreach hashline,libraries/bin-package-db#-#no-remote-repo#no-vcs \ +$$(foreach hashline,libraries/ghc-boot#-#no-remote-repo#no-vcs \ libraries/base#-#no-remote-repo#no-vcs \ libraries/ghc-prim#-#no-remote-repo#no-vcs \ libraries/integer-gmp#-#no-remote-repo#no-vcs \ |