Skip to content

Commit

Permalink
Merge pull request #257 from ChristopherDavenport/upgrades
Browse files Browse the repository at this point in the history
Upgrades
  • Loading branch information
ChristopherDavenport authored Feb 11, 2020
2 parents 9d6d4b8 + 45492f1 commit 8454ea2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ target/
# Ignore [ce]tags files
tags
.metals
.bloop
.bloop
project/metals.sbt
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ lazy val cormorant = project.in(file("."))
.aggregate(core, generic, parser, refined, fs2, http4s)


val catsV = "2.0.0"
val catsV = "2.1.0"
val catsEffectV = "2.1.1"
val catsEffectTestV = "0.3.0"
val catsEffectTestV = "0.4.0"
val shapelessV = "2.3.3"
val http4sV = "0.21.0-M6"
val http4sV = "0.21.0"
val catsScalacheckV = "0.2.0"
val specs2V = "4.8.2"
val specs2V = "4.8.3"

lazy val core = project.in(file("modules/core"))
.settings(commonSettings)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fs2

import cats.data.NonEmptyList
import cats.effect._
import cats.effect.specs2.CatsIO
import cats.effect.testing.specs2.CatsIO
import _root_.fs2.Stream
import io.chrisdavenport.cormorant._
// import io.chrisdavenport.cormorant.implicits._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fs2

import cats.data.NonEmptyList
import cats.effect._
import cats.effect.specs2.CatsIO
import cats.effect.testing.specs2.CatsIO
import _root_.fs2.Stream
import io.chrisdavenport.cormorant._
import io.chrisdavenport.cormorant.implicits._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ package object http4s {
implicit def completeEntityDecoder[F[_]: Sync]: EntityDecoder[F, CSV.Complete] =
new EntityDecoder[F, CSV.Complete] {
def consumes: Set[MediaRange] = Set(MediaType.text.csv)
def decode(msg: Message[F], strict: Boolean): DecodeResult[F, CSV.Complete] =
def decode(msg: Media[F], strict: Boolean): DecodeResult[F, CSV.Complete] =
cats.data.EitherT {
msg.body
.through(text.utf8Decode)
Expand All @@ -90,7 +90,7 @@ package object http4s {
implicit def rowsEntityDecoder[F[_]: Sync]: EntityDecoder[F, CSV.Rows] =
new EntityDecoder[F, CSV.Rows] {
def consumes: Set[MediaRange] = Set(MediaType.text.csv)
def decode(msg: Message[F], strict: Boolean): DecodeResult[F, CSV.Rows] = cats.data.EitherT {
def decode(msg: Media[F], strict: Boolean): DecodeResult[F, CSV.Rows] = cats.data.EitherT {
msg.body
.through(text.utf8Decode)
.compile
Expand All @@ -107,7 +107,7 @@ package object http4s {
def streamingLabelledReadDecoder[F[_]: Sync, A: LabelledRead]: EntityDecoder[F, Stream[F, A]] =
new EntityDecoder[F, Stream[F, A]] {
def consumes: Set[MediaRange] = Set(MediaType.text.csv)
def decode(msg: Message[F], strict: Boolean): DecodeResult[F, Stream[F, A]] =
def decode(msg: Media[F], strict: Boolean): DecodeResult[F, Stream[F, A]] =
msg.body
.through(text.utf8Decode)
.through(readLabelled[F, A])
Expand All @@ -117,7 +117,7 @@ package object http4s {
def streamingReadDecoder[F[_]: Sync, A: Read]: EntityDecoder[F, Stream[F, A]] =
new EntityDecoder[F, Stream[F, A]] {
def consumes: Set[MediaRange] = Set(MediaType.text.csv)
def decode(msg: Message[F], strict: Boolean): DecodeResult[F, Stream[F, A]] =
def decode(msg: Media[F], strict: Boolean): DecodeResult[F, Stream[F, A]] =
msg.body
.through(text.utf8Decode)
.through(readRows[F, A])
Expand Down

0 comments on commit 8454ea2

Please sign in to comment.