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

expose `Elm.CodeGen.infixExpose` #37

Open lue-bird opened 3 years ago

lue-bird commented 3 years ago

The current alternative is Elm.Syntax.InfixExpose. Are there plans to do infixExpose : BinOp -> TopLevelExpose? (all infix operators would then be in Elm.CodeGen. (|.), (</>, etc.)

rupertlssmith commented 3 years ago

I left this out since custom operators was removed in 0.19. Do you need it? To generate code for 0.18 or some other reason?

lue-bird commented 3 years ago

I do not expose custom infix operators from a generated module, but I want to import infix operators from Parser, Parser.Advanced and Url.Parser like (|=) and (<?>).

rupertlssmith commented 3 years ago

Good point, it should be exposed then.