blob: fe900eb8256da4f10258ef5c10f6624ff1b0df8e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE TemplateHaskell, QuasiQuotes #-}
-- example taken from the GHC documentation
module QuasiQuote where
import QuasiExpr
val :: Integer
val = eval [expr|1 + 2|]
|