shithub: MicroHs

ref: 22ec8f9ccf1c806f0329f51db837effe8abd5bf5
dir: /tests/OrPat.hs/

View raw version
module OrPat where

data Sweet = Cupcake | Liquorice | Cookie | Raisins

taste :: Sweet -> Bool
tasty (Cupcake; Cookie) = True
tasty (Liquorice; Raisins) = False

main :: IO ()
main = print $ map tasty [Cupcake, Liquorice, Cupcake, Raisins]