summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T10796b.hs
blob: 3da40633a89e2f17b63285e1e436d0c75c878c58 (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE TemplateHaskell #-}
module T10796b where

import Data.Set (Set, fromList)
import Language.Haskell.TH.Quote (dataToPatQ)

badPattern :: Set Char -> Set Char
badPattern s@($(dataToPatQ (const Nothing) (fromList "test"))) = s