Skip to content

Commit

Permalink
Use binding for annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
miniBill committed Mar 22, 2024
1 parent f8a69ba commit 08dbdb4
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions cli/gen-package/src/Generate.elm
Original file line number Diff line number Diff line change
Expand Up @@ -706,26 +706,7 @@ localType : List String -> String -> List Elm.Expression -> Elm.Expression
localType thisModule typeName args =
case preludeTypeName thisModule typeName of
( mod, name ) ->
Elm.apply
(Elm.value
{ importFrom = [ "Elm", "Annotation" ]
, name = "namedWith"
, annotation =
Just
(Annotation.function
[ Annotation.list Annotation.string
, Annotation.string
, Annotation.list
(Annotation.namedWith [ "Elm", "Annotation" ] "Annotation" [])
]
(Annotation.namedWith [ "Elm", "Annotation" ] "Annotation" [])
)
}
)
[ Elm.list (List.map Elm.string mod)
, Elm.string name
, Elm.list args
]
GenType.namedWith mod name args


preludeTypeName : List String -> String -> ( List String, String )
Expand Down

0 comments on commit 08dbdb4

Please sign in to comment.