Skip to content

Provide Get and Put instances for Scala Seq for Doobie module #112

@salamonpavel

Description

@salamonpavel

Background

There is no built-in Put and Get for Scala Seq type, only for List. We should provide it as part of the library.

implicit val get: Get[Seq[String]] = Get[List[String]].map(_.toSeq)
implicit val put: Put[Seq[String]] = Put[List[String]].contramap(_.toList)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    🆕 To groom

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions