distance :: { x :: Number, y :: Number } -> Number distance point = sqrt(point.x^2 + point.y^2) The function application of sqrt shouldn't have parens. And the type of distance should be distance :: forall r. { x ::…
PureScript is mentioned on one of his slides.
It's 9:30pm CET. The sun set a while ago ...
I use the vim plugin ("IdeaVim") in JetBrains PHPStorm & PyCharm.
distance :: { x :: Number, y :: Number } -> Number distance point = sqrt(point.x^2 + point.y^2) The function application of sqrt shouldn't have parens. And the type of distance should be distance :: forall r. { x ::…
PureScript is mentioned on one of his slides.
It's 9:30pm CET. The sun set a while ago ...
I use the vim plugin ("IdeaVim") in JetBrains PHPStorm & PyCharm.