Skip to content

Commit

Permalink
Merge pull request #1080 from Elorm-Axolu/implement-missing-sdk-funct…
Browse files Browse the repository at this point in the history
…ions-for-dict

missing dict sdk function 80% completed
  • Loading branch information
AttilaMihaly authored Oct 25, 2023
2 parents e7730b4 + 3214ed9 commit e650f47
Show file tree
Hide file tree
Showing 5 changed files with 411 additions and 238 deletions.
10 changes: 8 additions & 2 deletions cli/src/Morphir/Elm/CLI.elm
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,14 @@ update msg model =
let
resultIR : Result Decode.Error Distribution
resultIR =
distributionJson
|> Decode.decodeValue DistributionCodec.decodeVersionedDistribution
case distributionJson |> Decode.decodeValue DistributionCodec.decodeVersionedDistribution of
Ok packageDist ->
case packageDist of
Library packageName dependencies packageDef ->
Ok (Library packageName (Dict.union Frontend.defaultDependencies dependencies) packageDef)

Err err ->
Err err
in
case resultIR of
Ok ir ->
Expand Down
Loading

0 comments on commit e650f47

Please sign in to comment.