summaryrefslogtreecommitdiff
path: root/testsuite/tests/quasiquotation/qq009/Test.hs
blob: 1b43fb2acf935f9e02a4f0ab3aa9f097745d0dd7 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE QuasiQuotes #-}
module Test where

import QQ

f' = f . (+ 1)

[pq| foo |]         -- Expands to f :: Int -> Int
f x = x + 1