918a3978dd873079dc0758b6d5fd305cfc8cd6fa
[ghc.git] / testsuite / tests / th / T1476b.hs
1 {-# LANGUAGE TemplateHaskell #-}
2
3 module T1476b where
4
5 import Language.Haskell.TH
6
7 baz = [| \ $( return $ VarP $ mkName "x" ) -> x |]
8
9 -- If this test starts passing, nested pattern splices scope correctly.
10 -- Good for you! Now, update the TH manual accordingly.