Skip to content

Commit

Permalink
#37 Exposing infixExpose as needed for building import statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertlssmith committed Oct 26, 2021
1 parent c450ba9 commit f86176e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Elm/CodeGen.elm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Elm.CodeGen exposing
( file
, normalModule, portModule
, exposeAll, exposeExplicit
, exposeAll, exposeExplicit, infixExpose
, closedTypeExpose, funExpose, openTypeExpose, typeOrAliasExpose
, importStmt
, Linkage, addExposing, addImport, combineLinkage, emptyLinkage
Expand Down Expand Up @@ -44,7 +44,7 @@ they have been ommitted from the DSL.
# Build an 'exposing' statement.
@docs exposeAll, exposeExplicit
@docs exposeAll, exposeExplicit, infixExpose
@docs closedTypeExpose, funExpose, openTypeExpose, typeOrAliasExpose
Expand Down Expand Up @@ -465,6 +465,9 @@ exposeExplicit topLevelExposes =
Explicit (nodifyAll topLevelExposes)


{-| Custom operators were removed from Elm 0.19, but you can still import them
from the kernel modules that do define them, such as elm/parser.
-}
infixExpose : String -> TopLevelExpose
infixExpose sym =
InfixExpose sym
Expand Down

0 comments on commit f86176e

Please sign in to comment.