Re: [elm-discuss] 0.17-compatible web storage

2016-10-31 Thread Frederick Yankowski
https://github.com/fredcy/localstorage runs in Elm 0.17 and has storage events. The provided examples show it handling some events. That repo will never be published as an Elm package though. I originally named it "Storage", thinking to do session storage next. But it's a dead end and I gave

Re: [elm-discuss] 0.17-compatible web storage

2016-10-31 Thread David Andrews
Because primitives rock. If we expose API primitives in a typesafe way, we allow the community to use them to create useful libraries. I actually see that the persistent cache package has a LocalStorage module which exposes a subset of my proposed API. However, It does not implement the storage

Re: [elm-discuss] 0.17-compatible web storage

2016-10-31 Thread Joe Clay
I think it ties in with the general theme of Elm trying to guide you into making the right choices - if there's no real use case for LocalStorage other than using it as a cache, why expose the low level bindings and allow people to shoot themselves in the foot with them? On Monday, October 31,

Re: [elm-discuss] 0.17-compatible web storage

2016-10-31 Thread Peter Damoc
On Mon, Oct 31, 2016 at 8:38 AM, David Andrews wrote: > I would really like to be able to use local storage in elm. There have > been several libraries that implement this, but none of them have been > updated to elm 0.17. So far the advice I've seen is just to wait, but