Re: [elm-discuss] elm-lang/http and evancz/elm-http

2017-01-30 Thread 'Andrew Radford' via Elm Discuss
This sort of thing happens a lot (that and re-naming like elm-linear-algebra to just linear-algebra). bit of a trap for new users. I wonder if there is a formal way to leave a trail to the superseding package. The old packages usually still get a lot of hits from Google and references from

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

2017-01-30 Thread Lyle Kopnicky
That worked great, thanks! I used elm-github-install to install the bsouthga/elm-katex package directly from GitHub. I didn't have to rename my own local project. I only need to fork bsouthga's project if I want to update it to use a newer version of KaTeX. I didn't want to install gems in my

Re: [elm-discuss] elm-lang/http and evancz/elm-http

2017-01-30 Thread Nick H
They are the same library. elm-http was migrated from evancz/ to elm-lang/ when 0.18 was released, so only the latter will work. I guess the URL function was removed. On Mon, Jan 30, 2017 at 3:05 PM, Brian Marick wrote: > I’m confused by the relationship between these two

[elm-discuss] elm-lang/http and evancz/elm-http

2017-01-30 Thread Brian Marick
I’m confused by the relationship between these two libraries. They seem to overlap in functionality, but only the latter has `url` (http://package.elm-lang.org/packages/evancz/elm-http/latest/Http#url ) which seems pretty

[elm-discuss] Re: Using Elm with existing UI controls

2017-01-30 Thread Josh Szmajda
Do you think it's a viable alternate solution for now for an application to not unload any elements connected via ports and simply to hide them instead? Would certainly prefer your lifecycle events idea but thinking about near-term workarounds.. On Saturday, January 28, 2017 at 11:27:17 PM

[elm-discuss] Re: Generating reports for printing

2017-01-30 Thread Rex van der Spuy
Hi Rory, I've just done this! I've been working on a series of guided essay writing applications where the output is both Word and PDF. I ended up going through ports and generating the PDF using pdfMake: https://github.com/bpampuch/pdfmake And this parser: http://jsfiddle.net/mychn9bo/75/

Re: [elm-discuss] Building a Store without boilerplate

2017-01-30 Thread Oliver Searle-Barnes
Thanks for your elm-sapling example, that's an idea that I hadn't considered, I think it falls into approach (2) that I mentioned above. > I don't think that's possible. I have noticed that Haskell has solutions for this problem e.g. https://github.com/yesodweb/persistent. In that case it's

[elm-discuss] Re: What's the proper way of decoding Date inside JSON that comes through port?

2017-01-30 Thread Justin Mimbs
If you already have a Date in JS that you need to get into Elm, then sending it as an ISO string will certainly work. But another, more direct way to pass a date representation through a port is to pass it as a number, using the getTime

Re: [elm-discuss] Benchmarking with no JavaScript dependencies

2017-01-30 Thread Brian Hicks
I actually kind of figured that out. The constructor function can wrap and return whatever it wants in Elm. I think we'll still need a native module for timing, though. On Friday, January 27, 2017 at 4:32:32 PM UTC-6, Joey Eremondi wrote: > > I have some thoughts on how to fix the effectful

Re: [elm-discuss] Re: How to pattern match nested types?

2017-01-30 Thread jadski
Interesting - the link actually states pattern matching is done on fields not records - that might explain the confusion. On Monday, 30 January 2017 02:05:52 UTC, Joey Eremondi wrote: > > Yep. Sorry for the terminology confusion, I use Constructor (what they > call them in Haskell) and tag

Re: [elm-discuss] Building a Store without boilerplate

2017-01-30 Thread Peter Damoc
On Mon, Jan 30, 2017 at 12:17 PM, Oliver Searle-Barnes wrote: > # Building a Store without boilerplate > I don't think that's possible. Elm is a static language and what you seam to want is dynamic behavior. The practical way to solve this is to ferry type information and

[elm-discuss] Building a Store without boilerplate

2017-01-30 Thread Oliver Searle-Barnes
# Building a Store without boilerplate The app that I’ve been building has a Store abstraction which is built on top of elm-phoenix (websockets). Typical methods in the API are: Store.addProject projectAttributes store Store.renameProject projectId name store Store.deleteProject projectId store