Re: [elm-discuss] Re: Stance on native APIs for 0.18?

2016-12-08 Thread Wil C
So now, either I write a ports for commonmark.js, or I write it as a native >> module. I asked about it here >> with >> no answers. >> > > I think if you write it as ports or native, you'll still need to map the > AST between

[elm-discuss] width of message history in debugger

2016-12-06 Thread Wil C
Is there a way to expand the width of the message history pane in the debugger? I can't seem to see my entire message, since the pane doesn't appear to be resizable. Wil -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this

Re: [elm-discuss] Re: Stance on native APIs for 0.18?

2016-12-06 Thread Wil C
rd Feldman wrote: > > No new thinking on that as far as I'm aware...what are you looking to > build? > > On Mon, Dec 5, 2016, 8:37 AM Wil C <iam...@gmail.com > wrote: > >> Do you know if there's going to be a guide on native modules? I just used >> elm-markdown as a gu

[elm-discuss] Re: Stance on native APIs for 0.18?

2016-12-05 Thread Wil C
Do you know if there's going to be a guide on native modules? I just used elm-markdown as a guide, but I saw there were other conventions in other libraries with native modules. I understand the hesitation in giving a guide on an escape hatch to native, since people will instinctively reach

[elm-discuss] Re: Stance on native APIs for 0.18?

2016-12-05 Thread Wil C
What about for non-trivial things like markdown parsers? Wil On Monday, December 5, 2016 at 12:06:42 AM UTC-8, Richard Feldman wrote: > > Yeah, my impression is that that post still reflects Evan's thinking on > the matter. :) > -- You received this message because you are subscribed to the

[elm-discuss] Re: Race condition in textareas?

2016-12-05 Thread Wil C
I just ran into this problem. And the work around was pretty simple, and mentioned in a message in this group a while back. textarea [ property "defaultValue" (Json.Encode.string model.body) , onInput UpdateBody , rows (model.cursorAperture * 2)

[elm-discuss] Stance on native APIs for 0.18?

2016-12-04 Thread Wil C
I was reading the various message posts, and I happened upon this post on the stance of native modules from a year ago: https://groups.google.com/forum/#!searchin/elm-dev/native$20author$3aeva...@gmail.com/elm-dev/1JW6wknkDIo/H9ZnS71BCAAJ I was just wondering if there was an updated stance? Or

[elm-discuss] Should parsing code be integrated into Elm using port, managed effects, or native modules?

2016-11-22 Thread Wil C
I currently have a js library that will parse code and return either the html (render) or the AST (abstract syntax tree). The AST action per node is modifiable. I'd like use it in the following way: For a single node type in the AST, I want to process it (rather than just rendering it to Html)

[elm-discuss] Sometimes elm-lang.org hangs on "loading..."

2016-11-19 Thread Wil C
Since the update to 0.18, it seems like the web page on elm-lang.org--esp the docs pages--seems to hang with "Loading..." when I hit the page. It's not a big deal, since I can reload the page, and I get what I want. But it seems like a regression, and I didn't know if it was me, or if everyone

[elm-discuss] Json decoder: converting {type: foo, 0: a, 1: b, 2: c} to { type: foo, children: [a, b, c] }

2016-11-10 Thread Wil C
Hi all, I've been struggling with this for the better part of today. I find Json decoders really hard to grasp, for some reason, especially when there's a weird mapping you need to do. My JSON looks like this, and is an abstract syntax tree of "select * from submissions where age < 10": {

[elm-discuss] How to decode a recursive JSON from a port?

2016-10-05 Thread Wil C
Hi all, Thanks again for all your help. And when I've asked questions last year. I have another question. Here's my situation. I want to pass a json from a port, and decode the json into records. My port: port parseSuccess : (Json.Encode.Value -> msg) -> Sub msg When calling it:

Re: [elm-discuss] What's the convention for modules with more than one word?

2016-10-05 Thread Wil C
Ah, thanks. On Thursday, September 29, 2016 at 1:10:04 PM UTC-7, Joey Eremondi wrote: > > CamelCase in both cases. The file names usually exactly match the module > name, with .elm added. > > On Thu, Sep 29, 2016 at 1:08 PM, Wil C <iam...@gmail.com > > wrote: > >

[elm-discuss] More than one argument in the receive port call?

2016-10-03 Thread Wil C
Hi all, How do you pass back more than one argument in a receive port call? It says to visit http://guide.elm-lang.org/effect_managers/, but there's nothing there on the topic. I tried something like this: Port `parseFailure` has an invalid type. 10| port parseFailure : (String -> Int ->

[elm-discuss] What's the convention for modules with more than one word?

2016-09-29 Thread Wil C
Oddly enough, for the stuff I've written in elm, I've not had to name a multi-word module. What's the naming convention for multi-word modules? Is it CamelCase for the module name, but snake_case for the file name? I can't seem to find an example. Wil -- You received this message because

[elm-discuss] elm-make behavior different between localhost dev and production

2016-09-29 Thread Wil C
Hi all, I have a puzzling situation that I hope someone can shed some light on. I'm using elm with elixir, and compiling it with elm-brunch. I'm able to 'brunch build' without a problem locally, but on the remote heroku servers, I get the following problem: remote:Running default

Re: [elm-discuss] Making new Cmds

2016-05-25 Thread Wil C
ty/basics-extra > ​ > > 2016-05-25 8:53 GMT+02:00 Wil C <iam...@gmail.com >: > >> It turns out it doesn't. What's the correct way to do this? >> >> Wil >> >> On Tuesday, May 24, 2016 at 10:48:33 AM UTC-7, Janis Voigtländer wrote: >>> >>> This

[elm-discuss] Re: Pong example in Elm 0.17

2016-05-18 Thread Wil C
The mario example in 0.17 https://gist.github.com/pdamoc/6f7aa2d3774e5af58ebeba369637c228 On Thursday, May 12, 2016 at 12:59:13 AM UTC-7, Sean Seefried wrote: > > Hi all, > > I just started using Elm about 2 weeks ago. I had a lot of fun playing > with the Pong example and even started making

[elm-discuss] Re: How to implement wrapping components in elm

2016-05-17 Thread Wil C
Daniel, I think normally, you don't. I think the constraint here is that you need to explicitly set the types of each of the sub-components for every component that you make for a page. In the example that you give, you'd actually need to create 4 types of components: TopLevel, Counter,

[elm-discuss] Re: How to map over a list of entities that are different types?

2016-05-16 Thread Wil C
t;https://github.com/iamwilhelm/bayes-cat/tree/796542f8789726a797a268bf521c2a8c5e56b64a>. The downside is that every time you add a component, you have to add accessor and filterMap functions for each component. Hope that helps someone. Wil On Tuesday, May 10, 2016 at 11:56:44 PM UTC-7, Wil C wrote:

[elm-discuss] How to render at a lower fps in 0.17?

2016-05-16 Thread Wil C
I've made the switch to 0.17, and I've also followed along with the mario example . I can see how to get the delta, but it's locked in at around 60 fps with a subscription like "AnimationFrame.diffs Tick". How do I subscribe to