elm-build-lib alternatives and similar packages
Based on the "elm" category.
Alternatively, view elm-build-lib alternatives based on common mentions on social networks and blogs.
10.0 5.6 elm-build-lib VS elm-compilerCompiler for Elm, a functional language for reliable webapps.
Do you think we are missing an alternative of elm-build-lib or a related project?
You can find this package on Hackage.
Compiling to a single JS file
import Language.Elm.Build mainSource = "module Main where\nx=3" fooSource = "module Foo where\nx=3" myJS :: String myJS = compileAndLinkAll [mainSource, fooSource]
Of course, you can load the elm source from a file, or use a nicer multi-line string library such as QuasiText.
The order you give the modules in does not matter.
Compiling to a single JS file, during Haskell compilation
import Language.Elm.Build mainSource = "module Main where\nx=3" fooSource = "module Foo where\nx=3" myJS :: String myJS = $(deriveElmJS [mainSource, fooSource])