summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T1476b.hs
blob: 918a3978dd873079dc0758b6d5fd305cfc8cd6fa (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE TemplateHaskell #-}

module T1476b where

import Language.Haskell.TH

baz = [| \ $( return $ VarP $ mkName "x" ) -> x |]

-- If this test starts passing, nested pattern splices scope correctly.
-- Good for you! Now, update the TH manual accordingly.