Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
birthDay : Event
birthDay = MkEvent "Happy BirthDay" [IntVar, StrCst " years old, ", StrVar]
-- In the REPL:
> logEvent birthDay [IntVal 32, StrVal "Quentin"] -- Values match the placeholder expected types
Just "Happy BirthDay: 32 years old, Quentin"
> logEvent birthDay [StrVal "Quentin", IntVal 32] -- Wrong placeholder types (inverted)
> logEvent birthDay [IntVal 32] -- Missing placeholder value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment