haskell-src-exts-1.24.0: tests/examples/PatternSplice.hs
{-# LANGUAGE TemplateHaskell #-}
module PatternSpliceTest where
foo :: Int -> Bool
foo $( [p| 42 |] ) = True
foo _ = False
{-# LANGUAGE TemplateHaskell #-}
module PatternSpliceTest where
foo :: Int -> Bool
foo $( [p| 42 |] ) = True
foo _ = False