summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn/should_compile/T11367.hs
blob: 8e00a50352acc9c082bbb1a569aa7634d2e66f73 (plain)
1
2
3
4
5
6
7
{-# LANGUAGE PatternSynonyms, ViewPatterns #-}
module T11367 where

pattern A :: Int -> String
pattern A n <- (read -> n) where
        A 0 = "hi"
        A 1 = "bye"