Last active
September 4, 2017 19:53
-
-
Save deque-blog/7491951f0c925a70e6a5fd53c3104a9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
birthDay : Event | |
birthDay = MkEvent "Happy BirthDay" [IntVar, StrCst " years old, ", StrVar] | |
-- In the REPL: | |
> :t logEvent birthDay -- Query the type of logEvent applied to the birthDay event | |
Int -> String -> String -- The type of a function expecting an integer and a string to produce a string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment