Read all about it here first:
playingwithprojections.github.io
This should do it:
stack run path/to/basic.json
or
stack repl
> cmd ["path/to/basic.json"]
This is how you get values from events:
event |> event_id -- String
event |> event_type -- String
event |> timestamp -- ZonedTime
event |> payload |> quiz_title -- String
Note: x |> f = f x
, it's from the Flow library.
There's a video by @mathiasverraes and @ericevans0 that explains some stuff, albeit rather chaotic.