packages feed

fay-0.2.0.0: tests/18.hs

data Person = Person String String Int

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

print :: Foreign a => a -> Fay ()
print = foreignFay "console.log" FayNone