ghc-mod/test/data/pattern-synonyms/B.hs

8 lines
155 B
Haskell
Raw Normal View History

2014-09-12 01:48:22 +00:00
{-# LANGUAGE PatternSynonyms #-}
module B where
import A
foo :: SomeType Int Char -> String
foo x = case x of
MyPat a b -> show a ++ " " ++ [b]