summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn/should_compile/BundleInternal1.hs
blob: 9eee27317211b134ab1a3b3ed5e0fb93cbd175ed (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE PatternSynonyms #-}
module BundleInternal1 (A(NewA,MkA, NoA)) where

newtype A = NewA (Maybe Int)

pattern MkA n = NewA (Just n)

pattern NoA = NewA Nothing