Skip to content

Commit

Permalink
Fix imports for Arg
Browse files Browse the repository at this point in the history
  • Loading branch information
mdgriffith committed May 27, 2024
1 parent ec10dcf commit 66150db
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/Internal/Arg.elm
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,20 @@ tuple (Arg arg1) (Arg arg2) =
}
)
details1.annotation
details1.annotation
details2.annotation

imports =
List.concat [ details1.imports, details2.imports ]
details1.imports ++ details2.imports
in
{ details =
{ imports = imports
, pattern =
Compiler.nodify (Pattern.TuplePattern [ details1.pattern, details2.pattern ])
Compiler.nodify
(Pattern.TuplePattern
[ details1.pattern
, details2.pattern
]
)
, annotation = annotation
}
, index = Index.next two.index
Expand Down Expand Up @@ -334,15 +339,14 @@ val :
)
val index name =
let
typename : String
typename =
Index.protectTypeName name index

type_ =
Annotation.GenericType name
Annotation.GenericType typename

annotation =
let
typename : String
typename =
Index.protectTypeName name index
in
Ok
{ type_ = type_
, inferences = Dict.empty
Expand Down

0 comments on commit 66150db

Please sign in to comment.