aboutsummaryrefslogtreecommitdiff
path: root/html-test/src/QuasiQuote.hs
blob: 06762cf9c1346d605841c0fe07491d20d41d012e (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|]