This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Module { | |
import shapeless._ | |
sealed trait Decode[A] { | |
def decode(s: String): Option[A] | |
} | |
object Decode { | |
def dummy[A]: Decode[A] = new Decode[A] { | |
def decode(s: String) = Option.empty[A] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scalaz.{-\/, \/-} | |
import scalaz.concurrent.Task | |
import scalaz.syntax.monad._ | |
/* | |
* Easily adaptable to Monix, cats, fs2, cats-effect and so on | |
*/ | |
object Logger { | |
sealed trait Level | |
object Level { |
NewerOlder