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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Union tag docs now can be in parentheses #154

merged 1 commit into from Jul 22, 2017


None yet
2 participants

dahlia commented Jul 22, 2017

Fixes #153.

Like record docs, union tag docs also now can be in parentheses e.g.:

union U
    = T1 ()
    # Docs after closing parenthesis still work.
    | T2 (
        # Docs after opening parenthesis now becomes supported. 馃啎

@dahlia dahlia added the typ:enhance label Jul 22, 2017

@dahlia dahlia self-assigned this Jul 22, 2017

@dahlia dahlia requested review from kanghyojun and AiOO Jul 22, 2017


union shape
# Type constructors in a sum type become translated to subtypes in OO
# languages, and datatypes in functional languages.
= rectangle (point upper-left, point lower-right)
= rectangle (
# Each tag can have zero or more fields like record types.

This comment has been minimized.


@dahlia dahlia merged commit 7853572 into nirum-lang:master Jul 22, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed

@dahlia dahlia added the cmp:compiler label Aug 26, 2017

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