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

allow setter functions to be named like With.name With.anotherField #1

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

choonkeat
Copy link
Contributor

@choonkeat choonkeat commented Mar 12, 2021

when used with options: --prefix '' --module With

import With

increment model =
    model
        |> With.counter (model.counter + 1)

gotName s =
    Maybe.map (With.name s) maybeUser

also added __ suffix to variable names to better avoid name conflicts

when used with options: --prefix '' --module With
Copy link
Owner

@ymtszw ymtszw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! And thanks for the patch.
Please wait a while for the release, since I need to do some cleanups.

@ymtszw ymtszw merged commit 140ae1e into ymtszw:master Mar 15, 2021
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

Successfully merging this pull request may close these issues.

2 participants