{"library":"morphir-elm","title":"morphir-elm","description":"morphir-elm is an NPM package providing a CLI and Elm integration for the Morphir ecosystem (v2.100.0, active development, releases every few weeks). It parses Elm source code into Morphir IR (intermediate representation), enabling transpilation to Scala, TypeScript, and other languages, as well as visualization. Key differentiators: it bridges Elm's type system with FINOS's technology-agnostic Morphir format, supports both NPM and Elm package distribution, and includes a TypeScript SDK for structural equality and Maybe types. Alternatives include custom transpilers, but morphir-elm provides a standardised, multi-language pipeline.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install morphir-elm"],"cli":{"name":"morphir","version":null}},"imports":["npx morphir-elm make -f","import Morphir.IR exposing (IR)","import { equal } from 'morphir-elm/ts-sdk/Basics'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Create morphir.json\n{\n  \"name\": \"My.Package\",\n  \"sourceDirectory\": \"src\",\n  \"exposedModules\": [\"Foo\"]\n}\n\n// In terminal:\nmkdir -p src/My/Package\necho \"module My.Package.Foo exposing (..)\" > src/My/Package/Foo.elm\necho \"foo = 42\" >> src/My/Package/Foo.elm\nnpx morphir-elm make -f -p . -o morphir-ir.json\n\n// morphir-ir.json now contains the IR","lang":"typescript","description":"Creates a minimal Elm project, generates Morphir IR JSON via the CLI.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}