[elm-discuss] Re: List of all members of a union type

2017-05-05 Thread Simon
I had a different use case for the same basic idea. With GraphQL we have a sort-of typed query language that returns clearly defined json structures. In an ideal world therefore you should be able to define an Elm data structure (sum or union type) and for library functions to be able to

Re: [elm-discuss] New guidelines for posting on Elm-discuss

2017-05-05 Thread John Orford
I remember reading that post from Overmind and thinking it v odd. Maybe I am blind or have rose coloured glasses. Unsure whether Noah's rule book will help or hinder. But good that he cares. On Sat 6. May 2017 at 09:01, Mark Marlow wrote: > John, > > I tend to agree that

Re: [elm-discuss] New guidelines for posting on Elm-discuss

2017-05-05 Thread Mark Marlow
John, I tend to agree that the discourse isn't a problem. However, one can't help but notice that there is a perception of hostility in this community, e.g. https://elixirforum.com/t/front-end-development-options-2017/3832/2 The standard you walk past is the standard you accept, and we all

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-05-05 Thread Kasey Speakman
*Uploading files to AWS S3* That's my only use case so far for binary-type APIs of JS. I first call my own API to get a signed upload link, then PUT a file at that link. My simple way to upload files using Elm's Http module can be found here

[elm-discuss] Re: Linear algebra for 2d geometry?

2017-05-05 Thread Ian Mackenzie
On Friday, 5 May 2017 03:59:48 UTC-4, Rupert Smith wrote: > > On Thursday, May 4, 2017 at 5:53:36 PM UTC+1, Matthieu Pizenberg wrote: >> >> I definitely recommend looking at https://github.com/opensolid/geometry >> (with it's svg counterpart : https://github.com/opensolid/svg). >> I've been using

[elm-discuss] Re: Linear algebra for 2d geometry?

2017-05-05 Thread Ian Mackenzie
On Thursday, 4 May 2017 16:15:38 UTC-4, Rupert Smith wrote: > > I also notice that opensolid/svg is a small library. Would not be hard to > re-implement it over elm-community/typed-svg and remove all those > 'toString's. > True - although when I initially wrote opensolid/svg, typed-svg didn't

[elm-discuss] File Uploads - as simple as I could manage

2017-05-05 Thread Kasey Speakman
After a bit of research on file uploads, I pared it down to the simplest method I could find. Here is the recipe I came up with. https://gist.github.com/kspeakman/20708d5ff58b6ea75f9c3a82f6c793c3 The FileUtils module essentially wraps the JS File object in Http.Body as well as exposing common

[elm-discuss] Re: Local third-party packages

2017-05-05 Thread Gusztáv Szikszai
I've been working on this in the last few days, and published 1.0.0 of *elm-github-install* which handles using a fork (or any other git repository for a package) and using a local directory. If anyone tries this out some

Re: [elm-discuss] New guidelines for posting on Elm-discuss

2017-05-05 Thread Noah Hall
Hi Dustin, Regarding where to post, my personal recommendation is to choose Slack first. It has the largest community and problems get answered very quickly. People will also direct you to the right place if you're not sure. Regarding guidelines, we have discussed this quite a bit, and this post

Re: [elm-discuss] New guidelines for posting on Elm-discuss

2017-05-05 Thread John Orford
I love your work Noah and appreciate the sentiment. But... I think elm-discuss is quite nice. I haven't seen anything egregious, and rather free form discussion rather than pointing people to the rule book every once in a while. >From my POV almost everyone comes with the right attitude here.

[elm-discuss] Re: Linear algebra for 2d geometry?

2017-05-05 Thread 'Rupert Smith' via Elm Discuss
On Thursday, May 4, 2017 at 5:53:36 PM UTC+1, Matthieu Pizenberg wrote: > > I definitely recommend looking at https://github.com/opensolid/geometry > (with it's svg counterpart : https://github.com/opensolid/svg). > I've been using it a bit and it's awesome for what I understand you want. > This