diff --git a/src/Morphir/Elm/Frontend/Codec.elm b/src/Morphir/Elm/Frontend/Codec.elm index fef5f26f8..9e34c3529 100644 --- a/src/Morphir/Elm/Frontend/Codec.elm +++ b/src/Morphir/Elm/Frontend/Codec.elm @@ -59,6 +59,7 @@ import Morphir.Elm.Frontend exposing (ContentLocation, ContentRange, Error(..), import Morphir.Elm.Frontend.Resolve as Resolve import Morphir.IR.Name.Codec exposing (encodeName) import Morphir.IR.Path as Path +import Morphir.IR.Path.Codec exposing (encodePath) import Morphir.JsonExtra as JsonExtra import Morphir.Type.Infer.Codec as InferCodec import Parser exposing (DeadEnd) @@ -171,6 +172,11 @@ encodeError error = , InferCodec.encodeTypeError typeError ] + ExposedModuleNotFound path -> + JsonExtra.encodeConstructor "ExposedModuleNotFound" + [ encodePath path + ] + {-| Encode ContentLocation. -}