aboutsummaryrefslogtreecommitdiff
path: root/tests/tests/QuasiQuote.hs
blob: ed3c378745e379f03159fb0725883157299bc339 (plain) (blame)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE TemplateHaskell, QuasiQuotes #-}

-- example taken from the GHC documentation
module QuasiQuote where

import QuasiExpr

val :: Integer
val = eval [$expr|1 + 2|]