summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_spliceGuard.hs
blob: c349150c20602c027fa20ab689004d2bbef4a392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# OPTIONS_GHC -XTemplateHaskell #-}

-- #2017

module ShouldCompile where

 import Language.Haskell.TH

 $(do e <- [d| f a b
                 | a == b = a
                 | otherwise = b |]
      return e)