[elm-discuss] Re: Would Enums make a good addition to Elm?

2017-08-03 Thread Robin Heggelund Hansen
Regarding (2), I was not aware of this. Cool =) Having a deriving-esque way to generate encoders and decoders automagically would be great, and would go a long way in solving the hassle. (2) would also make my life easier. The problem I see with both deriving-esque auto coders (DEAC, patent

[elm-discuss] Elm `reusable views`

2017-08-03 Thread enetsee
Hi, I have been trying to create a `resuable view` following the structure outlined in evanczs `elm-sortable-table` and other examples, including: - abadi199s `datetimepicker` - thebriticans

Re: [elm-discuss] Elm `reusable views`

2017-08-03 Thread Peter Damoc
You could try to use MutationObservers to ferry that information in Elm: https://ellie-app.com/3VFHVxMsW2ya1/0 Unfortunately, I don't know enough about them to provide a solution that would actually monitors their resizing but maybe someone else could. On Thu, Aug 3, 2017 at 11:43 AM, enetsee

Re: [elm-discuss] Elm `reusable views`

2017-08-03 Thread Mark Hamburg
We watch for resizing using some resize observation JavaScript code — search on ResizeObserver and you can find a number of hits — and feed the values back through a port tagged with the size of the observed entity. Attaching the observer in a virtual DOM is an interesting problem because elements

[elm-discuss] Re: Can we get a patch release of elm-lang/core?

2017-08-03 Thread Filip Haglund
Sure, that works great for single projects, but this is in elm-test. If I make the string fuzzer generate unicode strings, I'll fail the test suites in thousands of projects and force all of them to use a non-core version of this function. It simply seems mean to do this until core has released

Re: [elm-discuss] Would Enums make a good addition to Elm?

2017-08-03 Thread Mark Hamburg
I thought about whether this was an opportunity to improve error messages but wasn't sure what the improvement would be. Is it detection that a previous case already matched everything? Is it specifically noting that the case involved a variable that shadows an existing variable? Or is this

[elm-discuss] Re: Would Enums make a good addition to Elm?

2017-08-03 Thread Francesco Orsenigo
> > Also worth noting that (2) is already slated to be fixed directly. It's a > lower priority than other things in the hopper right now, but it'd probably > still be higher priority than adding an enum feature.  > This is fantastic news! -- You received this message because you are

Re: [elm-discuss] Elm `reusable views`

2017-08-03 Thread Peter Damoc
Indeed, adding a ResizeObserver polyfill allows for the expected behavior: https://ellie-app.com/3VFHVxMsW2ya1/1 On Thu, Aug 3, 2017 at 7:18 PM, Mark Hamburg wrote: > We watch for resizing using some resize observation JavaScript code — > search on ResizeObserver and you

[elm-discuss] elm-tools/parser: how to transform library-generated Problems into custom Problems?

2017-08-03 Thread Dave Doty
I'm a bit confused what is the intended usage of elm-tools/parser to generate custom error messages. In particular, when creating a Parser value, but before calling run, there's no way to specify what sorts of errors can happen and messages to generate in response. The only interface in the