packages feed

fay-0.9.1.0: tests/recordPatternMatch.hs

{-# LANGUAGE NoImplicitPrelude #-}

data Person = Person String String Int

main = print (case Person "Chris" "Done" 14 of
                Person "Chris" "Done" 13 -> "Hello!"
                _ -> "World!")

print :: String -> Fay ()
print = ffi "console.log(%1)"