summaryrefslogtreecommitdiff
path: root/libraries/template-haskell/Language/Haskell/TH/Quote.hs
Commit message (Collapse)AuthorAgeFilesLines
* Add explicit LANGUAGE Safe to template-haskellOleg Grenrus2020-02-141-1/+1
| | | (cherry picked from commit a5e0f376821ca882880b03b07b451aa574e289ec)
* Documentation fixes in 'template-haskell'Alec Theriault2018-10-041-1/+1
| | | | | | | | | | | | | | | | | | Summary: * Clarify the non-presence of derived classes in reified decls (#15167) * Clarify the shallowness of "reifyInstances" (#7066) * Mention that 'Typeable' instances are not found by reifyInstances (#11251) * Various Haddock markup issues fixed Reviewers: goldfire, bgamari Reviewed By: bgamari Subscribers: rwbarton, carter GHC Trac Issues: #15167, #7066, #11251 Differential Revision: https://phabricator.haskell.org/D5197
* Modifications to support loading GHC into GHCiMichael Sloan2018-07-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change was previously part of [D4904](https://phabricator.haskell.org/D4904), but is being split off to aid in getting this reviewed and merged. * The compiler code is built with `NoImplicitPrelude`, but GHCi's modules are incompatible with it. So, this adds the pragma to all GHCi modules that didn't have it, and adds imports of Prelude. * In order to run GHC within itself, a `call of 'initGCStatistics` needed to be skipped. This uses CPP to skip it when `-DGHC_LOADED_INTO_GHCI` is set. * There is an environment variable workaround suggested by Ben Gamari [1], where `_GHC_TOP_DIR` can be used to specify GHC's top dir if `-B` isn't provided. This can be used to solve a problem where the GHC being run within GHCi attempts to look in `inplace/lib/lib/` instead of `inplace/lib/`. [1]: https://phabricator.haskell.org/D4904#135438 Reviewers: goldfire, bgamari, erikd, alpmestan Reviewed By: alpmestan Subscribers: alpmestan, lelf, rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4986
* Move liftData and use it as a default definition for Lift.Edward Z. Yang2015-06-031-74/+3
| | | | | | | | | | | | | | | | | | | | | Summary: This should make it a lot easier to define Lift instances. See https://mail.haskell.org/pipermail/libraries/2015-May/025728.html for motivating discussion. I needed to muck out some code from Quote into Syntax to get the definition in the right place; but I would argue that code never really belonged in Quote to begin with. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: austin, ekmett, goldfire Subscribers: bgamari, thomie Differential Revision: https://phabricator.haskell.org/D923
* Add liftData function.Edward Z. Yang2015-05-281-2/+8
| | | | | | | | | | | | | | | | Summary: See https://mail.haskell.org/pipermail/libraries/2015-April/025480.html for the proposal and discussion Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: austin Subscribers: bgamari, thomie Differential Revision: https://phabricator.haskell.org/D879
* Documentation for Language.Haskell.TH.Quote.Edward Z. Yang2015-05-041-7/+41
| | | | | | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonpj, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D850
* Untabify template-haskell.Richard Eisenberg2014-11-121-1/+1
|
* Use addDependentFile in quoteFile.Austin Seipp2013-11-031-1/+2
| | | | | | | We'd expect recompilation if these files change. Authored-by: Adam Vogt <vogt.adam@gmail.com> Signed-off-by: Austin Seipp <austin@well-typed.com>
* Fix the data constructors for tuples etc that dataToExpQ buildsIan Lynagh2012-02-081-3/+3
| | | | | Conal Elliott reported that dataToExpQ built a different constructor for () than [| () |]. This patch fixes that, and adds a regression test.
* Make dataToQa work regardless of the set of in-scope names (fixes #4491).Geoffrey Mainland2011-11-091-11/+18
| | | | | | | Use tyConPackage and tyConModule to determine the package and module to which a data type belongs. With this information we can use mkNameG_d to build constructor names which ensures that dataToQa creates TH terms that are independent of the set of in-scope names.
* Remove unnecessary toRationalsimonpj@microsoft.com2010-11-161-1/+1
|
* Add quoteFile function (see Trac #4293)simonpj@microsoft.com2010-09-101-1/+16
|
* Add quasiquote definitions for declarations and typessimonpj@microsoft.com2010-02-101-2/+4
|
* #2875: Correct SYB's representation of Charjpm@cs.uu.nl2009-01-191-3/+1
|
* eliminate dependency on sybRoss Paterson2008-10-051-1/+1
|
* Make the package -Wall cleanIan Lynagh2008-06-191-3/+3
|
* Make the StringConstr [] case of dataToQa fail rather than be an unhandled caseIan Lynagh2008-06-191-0/+2
|
* Replace TH.Quasi by TH.Quotesimonpj@microsoft.com2008-01-181-0/+62
This is a wibble to the preceding quasiquotation patch: I failed to add a file.