Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
add possibility to use → in route pattern, in addition to -> #2109
XXX: due to infix operation precedence, → has a lower priority than /. So you have to use parentheses in pattern matching when using this operator.
So this works
case GET → (Root / "test.json") =>
And, this won't
case GET → Root / "test.json" =>
It gives you something like this
If you're on the 0.18 series, we could retarget this for release-0.18.x and get it in a patch sooner. Otherwise, we can target this for the 0.19 series.