summaryrefslogtreecommitdiff
path: root/testsuite/tests/printer/PprCompleteSig.hs
blob: 1a5fbaed66e153b8aa05c2c3eb6d137f5b3e0ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -Wall #-}
module Simple where

pattern Foo :: ()
pattern Foo = ()

a :: () -> ()
a Foo = ()

data A = B | C | D

{-# COMPLETE Foo #-}
{-# COMPLETE B,C #-}
{-# COMPLETE B #-}

b :: A -> A
b B = B
b C = C