Compiler.Backend
Functions for working with the Haskell-based Gren compiler.
Version of the compiler blob. This might not match the version of the Gren compiler as a whole, as the Haskell- and Gren-parts are versioned seperatly.
Type used to signal that the given platform isn't supported. Meaning that there doesn't exist a pre-built compiler blob.
Construct a URL from which you can download a compiler blob compatible with the given platform and cpu architecture.
Downlod the compiler blob.
Commands supported by the compiler blob.
Repl
: run a REPL.Make
: compile a projectDocs
: generate a docs.json filePackageValide
: check if this package is ready to be deployedPackageBump
: bump package version to next compatible semantic versionPackageDiff
: calculate the API-difference between this package and another version.
Encode a backend command to JSON. This should be fed to the compiler backend upon initialization.
Execute the compiler backend. The backend will write to stdout and stderr. There's currently no way to redirect what is written to these streams.