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