Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Support nested case classes for CsvRow*coder derivation #45

Open
@Daenyth

Description

@Daenyth

When deriving shapeless implicits for very wide case classes, sometimes the compiler fails with a stack overflow error. One technique to avoid this is to nest the case classes, which is isomorphic to the flattened structure.

Something like this:

caseclassSub(@CsvName("first-name")firstName:String,@CsvName("the-age")age:Int)caseclassWhole(@CsvName("last-name")lastName:String,@CsvEmbedsub:Sub)// last-name, first-name, the-age// flintstone, fred, 42

Context:https://gitter.im/fs2-data/general?at=5f159b91a28d973192e7d07a

Doobie supports a similar structure

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp