Re: [elm-discuss] Why latest versions of elm-compiler not available on Hackage?

2016-12-13 Thread Joey Eremondi
Hmm, for something like that, you're probably best to just copy the Elm-compiler from Github. Perhaps you could include it in your project as a git submodule, so that you can update it as Elm updates it? In any case, it's unlikely an API would be exported before Elm hits 1.0, so that anyone using

Re: [elm-discuss] Why latest versions of elm-compiler not available on Hackage?

2016-12-13 Thread Jan Hrček
Joey, thanks for the answer. About my use case: I would like to implement some tool in haskell to visualize various aspects of elm packages as graphs (as I am quite crazy about using graphs to understand software). For example 1) package dependencies: nodes = packages; edge from X to Y meaning

Re: [elm-discuss] Why latest versions of elm-compiler not available on Hackage?

2016-12-09 Thread Joey Eremondi
Jan, can you tell us about your use case? Elm-compiler doesn't export the parser as a library. If you're looking to do stuff like that, elm-format might be a better starting point for a parser: https://github.com/avh4/elm-format The syntax is not exported as an API because it is subject to change

Re: [elm-discuss] Why latest versions of elm-compiler not available on Hackage?

2016-12-09 Thread Nick H
You need to build from source. The elm compiler moved from hackage to npm. It was never maintained in both places at once. On Fri, Dec 9, 2016 at 1:51 AM, Jan Hrček wrote: > Hello, > > is there a distribution of latest (0.18) elm-compiler available as haskell > library? I checked hackage >

[elm-discuss] Why latest versions of elm-compiler not available on Hackage?

2016-12-09 Thread Jan Hrček
Hello, is there a distribution of latest (0.18) elm-compiler available as haskell library? I checked hackage but that only has version 0.15. Or do I need to build it from sources? I'd like to make use of the elm parsing capabilities of the libr