summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_sections.hs
blob: a5e97da649dff16e3d8cc5a281745344213084ea (plain)
1
2
3
4
5
6
7
8
9
10
11
-- Test for trac #2956
{-# LANGUAGE TemplateHaskell #-}

module TH_sections where

two :: Int
two = $( [| (1 +) 1 |] )

three :: Int
three = $( [| (+ 2) 1 |] )