You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All effects within the Scala implementation are wrapped in `Sync`from [cats-effect][cats-effect]. In these examples we use `IO`, but anything that implements `Sync` can be used.
24
+
You can provide wrappers for effects, such as `Sync`, `Eval` or `Id`from [cats-effect][cats-effect]. In the examples below we use `IO`.
25
25
26
26
```scala
27
-
importcom.snowplowanalytics.refererparser.Parser
27
+
importcom.snowplowanalytics.refererparser._
28
28
importcats.effect.IO
29
29
importcats.data.EitherT
30
30
importjava.net.URI
@@ -36,14 +36,14 @@ val referersJsonPath = "/opt/referers/referers.json"
36
36
37
37
// We use EitherT to handle exceptions. The IO routine will short circuit if an exception is returned.
38
38
valio:EitherT[IO, Exception, Unit] =for {
39
-
// We can instantiate a new Parse instance with Parse.create
0 commit comments