From b4f5e3c06e855d518fe46605fe89ff9fc102c168 Mon Sep 17 00:00:00 2001 From: Gabriel Volpe Date: Mon, 4 May 2020 19:59:00 +0200 Subject: [PATCH] fixing tests --- .../src/main/scala/dev/profunktor/redis4cats/hlist.scala | 8 ++++---- site/docs/transactions.md | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/core/src/main/scala/dev/profunktor/redis4cats/hlist.scala b/modules/core/src/main/scala/dev/profunktor/redis4cats/hlist.scala index 3890459d..af8a9a9d 100644 --- a/modules/core/src/main/scala/dev/profunktor/redis4cats/hlist.scala +++ b/modules/core/src/main/scala/dev/profunktor/redis4cats/hlist.scala @@ -33,6 +33,10 @@ object hlist { final case class HCons[+H, +Tail <: HList](head: H, tail: Tail) extends HList case object HNil extends HList + object ~: { + def unapply[H, T <: HList](l: H :: T): Some[(H, T)] = Some((l.head, l.tail)) + } + /** * It witnesses a relationship between two HLists. * @@ -63,8 +67,4 @@ object hlist { new Witness[HCons[F[A], T]] { type R = HCons[A, w.R] } } - object ~: { - def unapply[H, T <: HList](l: H :: T): Some[(H, T)] = Some((l.head, l.tail)) - } - } diff --git a/site/docs/transactions.md b/site/docs/transactions.md index 906a85c0..2ba46ec5 100644 --- a/site/docs/transactions.md +++ b/site/docs/transactions.md @@ -47,6 +47,7 @@ import cats.implicits._ import dev.profunktor.redis4cats._ import dev.profunktor.redis4cats.hlist._ import dev.profunktor.redis4cats.transactions._ +import java.util.concurrent.TimeoutException def putStrLn(str: String): IO[Unit] = IO(println(str))