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
[](https://gitter.im/snowplow-referer-parser/referer-parser?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
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.
23
+
You can provide wrappers for effects, such as `Sync`, `Eval` or `Id`from [cats-effect][cats-effect]. In the examples below we use `IO`.
16
24
17
25
```scala
18
-
importcom.snowplowanalytics.refererparser.Parser
26
+
importcom.snowplowanalytics.refererparser._
19
27
importcats.effect.IO
20
28
importcats.data.EitherT
21
29
importjava.net.URI
@@ -27,14 +35,14 @@ val referersJsonPath = "/opt/referers/referers.json"
27
35
28
36
// We use EitherT to handle exceptions. The IO routine will short circuit if an exception is returned.
29
37
valio:EitherT[IO, Exception, Unit] =for {
30
-
// We can instantiate a new Parse instance with Parse.create
0 commit comments