summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn/should_compile/T10997a.hs
blob: ec3c54238d9fb2302b7649d4f08e3a9bdd425a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE GADTs, PatternSynonyms #-}

module T10997a where

data Exp ty where
  LitB :: Bool -> Exp Bool

pattern Tru :: () => b ~ Bool => Exp b
pattern Tru = LitB True