Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatten data records #164

Open
ip1981 opened this issue Aug 19, 2018 · 0 comments
Open

Flatten data records #164

ip1981 opened this issue Aug 19, 2018 · 0 comments

Comments

@ip1981
Copy link

ip1981 commented Aug 19, 2018

Let's have

data Foo = Foo
{ foo1 :: Int
, foo2 :: String
}

data Bar = Bar
{ bar1 :: Int
, bar2 :: Foo
}

I'd like to have CSV for Bar:

bar1, foo1, foo2
1, 1, "foo"

How can I do that? Maybe with nested records too, avoiding boilerplate code, using generics, etc .

P. S. Realization could add a new encoding option in EncodeOptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant