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

Add flag for show plugin to separate fields with a newline #192

Open
XVilka opened this issue Jun 17, 2019 · 2 comments
Open

Add flag for show plugin to separate fields with a newline #192

XVilka opened this issue Jun 17, 2019 · 2 comments

Comments

@XVilka
Copy link
Contributor

XVilka commented Jun 17, 2019

Something like

type qwe = {
    a: int;
    b: string;
} [@@deriving show { with_path = false, with_newline = true }

will show

{
  a = 4;
  b = "something";
}
@whitequark
Copy link
Collaborator

I'm wondering if maybe a dynamically scoped flag would be more fitting there, to give caller control over printing. (And for with_path as well.)

@XVilka
Copy link
Contributor Author

XVilka commented Jun 19, 2019

@whitequark could be the option too, agree.

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

No branches or pull requests

2 participants