programaker / Joguin2

Toy Scala project to study some cool Functional Programming concepts (version 1 was in Java)
2 stars 0 forks source link

Change default effect to ZIO #21

Closed programaker closed 5 years ago

programaker commented 5 years ago

Related to #5. In the future we'll have multiple effects to choose, but currently the default one is cats-effect.

As ZIO is getting stronger everyday in the community (many talks, posts, related projects...), making it the default would be a good opportunity to take a look at it and practice a little.

Also, cats-effect is blocking #11 =(

programaker commented 5 years ago

First step -> Generalize the Interpreters coupled with cats.IO to use Monad[F] and LazyEff[F]. Also, change the name to just Lazy and use apply instead of wrap

programaker commented 5 years ago

Nah, forget about the wrap -> apply; apply is being used as smart constructor, same technic used by Monad[F] itself

programaker commented 5 years ago

Ah, what about lift? Sounds FP