On Tuesday, December 6, 2016 at 5:18:04 PM UTC, Wil C wrote:
>
> So now, either I write a ports for commonmark.js, or I write it as a 
> native module. I asked about it here 
> <https://groups.google.com/forum/#!topic/elm-discuss/Kd53qnKY-io> with no 
> answers. 
>

I think if you write it as ports or native, you'll still need to map the 
AST between javascript and Elm. As a native module that could be done with 
a Decoder or by constructing the Elm AST in native code with Javascript. 
Perhaps Decoders are not so bad?

I don't think a parser is a side-effect. A parser is a pure function from 
String -> Ast, with no side effects.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to