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

Let binding with tuple destructuring causes error #1

Closed
tunguski opened this issue Apr 17, 2017 · 0 comments
Closed

Let binding with tuple destructuring causes error #1

tunguski opened this issue Apr 17, 2017 · 0 comments

Comments

@tunguski
Copy link
Owner

In:

complement : Color -> Color
complement color =
  case color of
    HSLA h s l a ->
      hsla (h + degrees 180) s l a

    RGBA r g b a ->
      let
        (h,s,l) = rgbToHsl r g b
      in
        hsla (h + degrees 180) s l a

let binding with tuple destructuring causes error

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