Closed reebayroo closed 2 months ago
Detected problems in 1 module.
-- TYPE MISMATCH --------------------------------- src/Morphir/Elm/Generator.elm
Something is off with the body of the `generatorsResult` definition:
107|> fqnByTpeSpecsResult
108|> |> Result.andThen
109|> (\fqnByTpeSpecs ->
110|> fqnByTpeSpecs
111|> |> List.map
112|> (\( fqn, tpeSpec ) ->
113|> case tpeSpec of
114|> Type.TypeAliasSpecification args tpe ->
115|> ValueGenerator.fromType ir tpe
116|> |> Result.map (Tuple.pair tpe)
117|> |> Result.map (Tuple.pair fqn)
118|>
119|> Type.OpaqueTypeSpecification lists ->
120|> Debug.todo "Implement this"
121|>
122|> Type.CustomTypeSpecification lists constructors ->
123|> Debug.todo "Implement this"
124|>
125|> Type.DerivedTypeSpecification lists derivedTypeSpecificationDetails ->
126|> Debug.todo "Implement this"
127|> )
128|> |> ResultList.keepFirstError
129|> |> Result.map Dict.fromList
130|> )
The body is:
Result
ValueGenerator.Error
(
Dict.Dict
Compiling ... ( Morphir.IR.Path.Path, Morphir.IR.Path.Path, Morphir.IR.Name.Name )
( Type (), Morphir.Generator.API.Generator RawValue )
)
But the type annotation on `generatorsResult` says it should be:
Result String (Dict.Dict FQName ( Type (), Generator.Generator RawValue ))
Success!
Morphir.Elm.CLI ───> Morphir.Elm.CLI.js
Terms