summaryrefslogtreecommitdiff
path: root/libraries/gen_contents_index
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2019-11-27 15:29:44 +0000
committerBen Gamari <ben@smart-cactus.org>2020-01-12 05:25:30 -0500
commit4ef5871feccc58927428b4eabe46100b25821f15 (patch)
tree024ea80f47b361183ff9fb6fd8e5c9cc06452967 /libraries/gen_contents_index
parent99a9f51bf8207c79241fc0b685fadeb222a61292 (diff)
downloadhaskell-wip/overload-th.tar.gz
Overloaded Quotation Brackets (#246)wip/overload-th
This patch implements overloaded quotation brackets which generalise the desugaring of all quotation forms in terms of a new minimal interface. The main change is that a quotation, for example, [e| 5 |], will now have type `Quote m => m Exp` rather than `Q Exp`. The `Quote` typeclass contains a single method for generating new names which is used when desugaring binding structures. The return type of functions from the `Lift` type class, `lift` and `liftTyped` have been restricted to `forall m . Quote m => m Exp` rather than returning a result in a Q monad. More details about the feature can be read in the GHC proposal. https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0246-overloaded-bracket.rst
Diffstat (limited to 'libraries/gen_contents_index')
0 files changed, 0 insertions, 0 deletions