Communication between >1 Elm.Main with effects? (Was Re: [elm-discuss] Can't install native package using elm-github-install)

2016-11-24 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, November 22, 2016 at 4:59:22 AM UTC, Gusztáv Szikszai wrote: > > I think you are looking for something like this: > https://github.com/gdotdesign/elm-ui/blob/master/source/Ui/Helpers/Emitter.elm > > It's a pure Elm pub / sub effects module (and possibly the most minimal > example of

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-22 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, November 22, 2016 at 4:59:22 AM UTC, Gusztáv Szikszai wrote: > > I think you are looking for something like this: > https://github.com/gdotdesign/elm-ui/blob/master/source/Ui/Helpers/Emitter.elm > > It's a pure Elm pub / sub effects module (and possibly the most minimal > example of

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-22 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, November 22, 2016 at 10:32:22 AM UTC, Gusztáv Szikszai wrote: > > Yes, that is perfect for my use case, thanks. This should be added to the >> official packages? >> > > This kind of messaging is not encouraged (sending things around the > program), so It probably will not be added t

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-22 Thread Gusztáv Szikszai
> > Yes, that is perfect for my use case, thanks. This should be added to the > official packages? > This kind of messaging is not encouraged (sending things around the program), so It probably will not be added to the official packages. That is, I provide the name of the channel and it retur

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-22 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, November 22, 2016 at 4:59:22 AM UTC, Gusztáv Szikszai wrote: > > I think you are looking for something like this: > https://github.com/gdotdesign/elm-ui/blob/master/source/Ui/Helpers/Emitter.elm > > It's a pure Elm pub / sub effects module (and possibly the most minimal > example of

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-21 Thread Gusztáv Szikszai
I think you are looking for something like this: https://github.com/gdotdesign/elm-ui/blob/master/source/Ui/Helpers/Emitter.elm It's a pure Elm pub / sub effects module (and possibly the most minimal example of an effect module). On Monday, November 21, 2016 at 11:54:50 PM UTC+1, Rupert Smith

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-21 Thread 'Rupert Smith' via Elm Discuss
On Friday, November 18, 2016 at 3:50:51 PM UTC, OvermindDL1 wrote: > > > On Friday, November 18, 2016 at 5:18:27 AM UTC-7, Rupert Smith wrote: >> >> I found using a port to enable global communication with the Auth module >> from anywhere in my application (any time you get a 401 or 403 you invoke

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-19 Thread 'Rupert Smith' via Elm Discuss
On Friday, November 18, 2016 at 3:50:51 PM UTC, OvermindDL1 wrote: > > > On Friday, November 18, 2016 at 5:18:27 AM UTC-7, Rupert Smith wrote: >> >> I found using a port to enable global communication with the Auth module >> from anywhere in my application (any time you get a 401 or 403 you invoke

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-19 Thread 'Rupert Smith' via Elm Discuss
On Friday, November 18, 2016 at 5:45:03 PM UTC, Nick H wrote: > > What if you just removed the port declarations from your package? That's > only a few lines of code, and nothing else seems to depend on them (except > a little Util function). The rest of your work could even be published to > th

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-18 Thread Nick H
What if you just removed the port declarations from your package? That's only a few lines of code, and nothing else seems to depend on them (except a little Util function). The rest of your work could even be published to the package manager. On Fri, Nov 18, 2016 at 4:18 AM, 'Rupert Smith' via

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-18 Thread OvermindDL1
On Friday, November 18, 2016 at 5:18:27 AM UTC-7, Rupert Smith wrote: > > I found using a port to enable global communication with the Auth module > from anywhere in my application (any time you get a 401 or 403 you invoke > 'unauthed') to be quite convenient. Perhaps I might find a better solut

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-18 Thread 'Rupert Smith' via Elm Discuss
On Friday, November 18, 2016 at 11:17:23 AM UTC, Peter Damoc wrote: > > There are two approaches to interacting with JS: > 1. ports > 2. Native > > modules with ports cannot be packaged/published and are designed to be > used ONLY in the final product > modules with Native code can be packaged/

Re: [elm-discuss] Can't install native package using elm-github-install

2016-11-18 Thread Peter Damoc
There are two approaches to interacting with JS: 1. ports 2. Native modules with ports cannot be packaged/published and are designed to be used ONLY in the final product modules with Native code can be packaged/published but they have to be whitelisted. Their use is discouraged outside of the web-

[elm-discuss] Can't install native package using elm-github-install

2016-11-18 Thread 'Rupert Smith' via Elm Discuss
https://github.com/gdotdesign/elm-github-install One of the reasons for this existing is to be able to share native modules outside of the official packages. My Auth code uses ports, I extracted it into a github project here: https://github.com/rupertlssmith/elm-auth Then referenced it in my e