the-sett / elm-syntax-dsl

A DSL for creating Elm syntax trees and pretty printing Elm source code.
BSD 3-Clause "New" or "Revised" License
20 stars 4 forks source link

Missing operators from `Url.Parser` #48

Open okkero opened 11 months ago

okkero commented 11 months ago

I am trying to generate code that uses the </> operator from Url.Parser, but I could not find a way to do it. There is no function that returns a BinOp for that operator, as far as I can tell, and there is no way to create a custom BinOp. This seems like an oversight. There might be other missing operators.

rupertlssmith commented 11 months ago

It is an oversight. I think the other missing operators will be |. and |= from elm-parser. AFAIK the only custom operators defined outside the core language are those and the Url.Parser ones.