finos / morphir-elm / Morphir.Scala.Backend

This module encapsulates the Scala backend. It takes the Morphir IR as the input and returns an in-memory representation of files generated. The consumer is responsible for getting the input IR and saving the output to the file-system.

mapDistribution : Options -> Morphir.Correctness.Test.TestSuite -> Morphir.IR.Distribution.Distribution -> Result Error Morphir.File.FileMap.FileMap

Entry point for the Scala backend. It takes the Morphir IR as the input and returns an in-memory representation of files generated.

Options


type alias Options =
{ limitToModules : Maybe (Set Morphir.IR.Module.ModuleName)
, includeCodecs : Basics.Bool
, testOptions : Morphir.Scala.Feature.TestBackend.Options 
}

Placeholder for code generator options.


type Error
    = TestError Morphir.Scala.Feature.TestBackend.Errors
    | CodecError Morphir.Scala.Feature.Codec.Error

Possible errors during code generation.