These are chat archives for YoEight/eventstore

4th
May 2017
paullucas
@paullucas
May 04 2017 00:38
Hey, are you able to provide an example of fetching events from a subscription? Whenever I attempt to use the resolvedEventDataAsJson function I run into Ambiguous type variable ‘a0’ arising from a use of ‘resolvedEventDataAsJson’ prevents the constraint ‘(aeson-1.0.2.1:Data.Aeson.Types.FromJSON.FromJSON a0)’ from being solved. (my progress so far: https://github.com/paullucas/es-hs/blob/master/src/Main.hs#L22)
paullucas
@paullucas
May 04 2017 00:52
(where I'd be trying to return $ resolvedEventDataAsJson event rather than recurring the loop)
Yorick Laupa
@YoEight
May 04 2017 04:19
This error comes from the compiler because it can't figures out a type that implement FromJSON based on your code. So either you get specific in your code about the type you want or you use resolvedOriginalEvent instead
paullucas
@paullucas
May 04 2017 06:09
Thanks @YoEight!