[elm-discuss] ANN: CollectionsNg 1.0.0: Stable collections with working equality

2016-06-15 Thread Robin Heggelund Hansen
Just pushed CollectionsNg to package.elm-lang.org.

CollectionsNg contain implementations of Array, Dict and Set written in 
pure Elm. The implementations are API compatible with their namesakes in 
elm-core, all you have to do to use them is to use different namespaces.

These collections differ from those in elm-core with a stable Array 
implementation, and that equality (==) works as you would expect.

Read more at 
http://package.elm-lang.org/packages/Skinney/collections-ng/1.0.0

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] Re: State of CSS in Elm

2016-06-15 Thread Peter Damoc
I went full XKCD on this one:
https://xkcd.com/927/

I played a little bit with "rtfeldman/elm-css" and I actually liked it but
looking at the source code and at the long list of issues and PRs, I
got discouraged about contributing.
It is a great library and probably the most tested and used in real world
scenarios.

I ended up spending most of today implementing my own little library
"pdamoc/elm-css" that is a blend of all three libraries.
It has a stylesheet declarative approach that is closer to
*rtfeldman/elm-css* than to* massung/elm-css* and a simple, String based
Declarations approach like in *seanhess/elm-style*.

It is alpha quality but I managed to port the code I wrote yesterday to it
and I'm planning to play with it for a few more days just for fun. :)




On Wed, Jun 15, 2016 at 10:22 PM, Rex van der Spuy 
wrote:

>
>> I haven't used elm-css yet but I'm really looking forward to it - It
>> sounds like it will make working with CSS much more bearable.
>>
>
> Just replying to my own comment:
>
> I played around with elm-css for an afternoon, but realized it was adding
> more complexity than my (tiny) app was benefiting from.
> So I'm back to using Elm's `style` function - nice and simple for now.
> But elm-css is really excellent and it would be ideal for a large,
> traditional web site project.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
There is NO FATE, we are the creators.
blog: http://damoc.ro/

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] Re: State of CSS in Elm

2016-06-15 Thread Rex van der Spuy

>
>
> I haven't used elm-css yet but I'm really looking forward to it - It 
> sounds like it will make working with CSS much more bearable.
>

Just replying to my own comment:

I played around with elm-css for an afternoon, but realized it was adding 
more complexity than my (tiny) app was benefiting from.
So I'm back to using Elm's `style` function - nice and simple for now.
But elm-css is really excellent and it would be ideal for a large, 
traditional web site project.  

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] Re: Elm-Material Collaboration

2016-06-15 Thread Joe Terry
I am looking forward to working with your 
*elm-mdl *


It is very well thought out and managed. You are obviously an experienced 
and prepared OSS manager.


On Friday, April 1, 2016 at 2:51:56 PM UTC-7, debois wrote:
>
> Happy to see you're making progress! 
>
> Most components in the elm-mdl library—including Layout—has some form of 
> state, and so requires you to save that state in your model and forward 
> actions to component update functions. 
>
> Writing out all that stuff in Elm is very verbose, I know, but to the best 
> of my knowledge, nobody has found a good way to remove the boilerplate so 
> far. I'm working on finding a way to reduce the boilerplate as much as 
> possible, but it'll be a couple of weeks before a new release of the 
> package comes out. 
>
> Hope this helps, 
>
> Søren

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] http request: How to access the whole response

2016-06-15 Thread germain
Hello,

To make a request,  I chain:
send  
: Settings 
 
-> Request 
 -> 
Task RawError 
 
Response 

and
fromJson 
 : 
Decoder a -> Task RawError 
 
Response 
 
-> Task Error 
 a

It works well (thanks to Simon) however I could not retrieve the whole 
response, only the value field of the response. Because the fromJson 
function only: 

   - Check that the status code is in the 200 range.
   - Make sure the response Value is a string.
   - Convert the string to Elm with the given Decoder.

Right?

type alias Response 
 = { 
status : Int , statusText : String , headers : Dict String String , url : 
String , value : Value 
 }

Is it possible to retrieve the whole response, for example to retrieve the 
status and the value fields?

Thanks,
Germain.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [elm-discuss] What happened to all of the cool Elm examples at http://elm-lang.org/examples?

2016-06-15 Thread Peter Roehlen
Awesome, thanks for the explanation and the links particularly.
On 15 Jun 2016 14:54, "Peter Damoc"  wrote:

> Some of those examples relied on Signals (they were documenting Signal
> related functionality).
> 0.17 removed the Signals so, those examples became obsolete.
>
> Some other part of those examples relied on Graphics.* packages and those
> were deprecated.
> Graphics.* modules were removed from elm-lang/core but they live now in
> evancz/elm-graphics (Graphics.Input.* relied on Signals and are gone).
>
> Graphics.* represented an attempt to replace HTML/CSS but its
> implementation was quite slow.
> elm-lang.org switched from Graphics.* to the virtual-dom backed Html.* a
> long time ago and that became the recommended way to create Elm web-apps.
>
> That being said, if you want to use Graphics.* library, you can still do
> that.
>
> Here is a link to a 0.17 port of Mario.
> https://gist.github.com/pdamoc/6f7aa2d3774e5af58ebeba369637c228
>
> Here is a link to a 0.17 port of Pong
> https://gist.github.com/pdamoc/fd29925b8e20dd92e91c5b75e6c3711e
>
>
>
>
>
>
> On Wed, Jun 15, 2016 at 10:09 AM,  wrote:
>
>> Hi all,
>>
>>
>> I originally posted this on the Elm sub-reddit but thought this might be
>> a more appropriate venue for the question so I've deleted that post.
>> Here's my question:
>>
>>
>> I started dabbling in learning Elm early this year and then put it aside
>> when I got stuck at some point. Lately I've started writing a little
>> javascript browser game when I remembered there was a new version of Elm
>> out recently and maybe I should try and write it in Elm. However I couldn't
>> find anything in the new docs about drawing to "screen" etc and also it
>> appeared as though most of the inspiring examples (tiny little programs
>> that seemed to do amazing things for little effort) are no longer there. A
>> trip to wayback machine confirmed my memory of what it used to look like (
>> https://web.archive.org/web/20160314202927/http://elm-lang.org/examples).
>>
>>
>> Are these examples gone for good? Are the language features they relied
>> on no longer available?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Elm Discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to elm-discuss+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> There is NO FATE, we are the creators.
> blog: http://damoc.ro/
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Elm Discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elm-discuss/PxT2M4LH0bs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] What happened to all of the cool Elm examples at http://elm-lang.org/examples?

2016-06-15 Thread peter . roehlen


Hi all,


I originally posted this on the Elm sub-reddit but thought this might be a 
more appropriate venue for the question so I've deleted that post.  Here's 
my question:


I started dabbling in learning Elm early this year and then put it aside 
when I got stuck at some point. Lately I've started writing a little 
javascript browser game when I remembered there was a new version of Elm 
out recently and maybe I should try and write it in Elm. However I couldn't 
find anything in the new docs about drawing to "screen" etc and also it 
appeared as though most of the inspiring examples (tiny little programs 
that seemed to do amazing things for little effort) are no longer there. A 
trip to wayback machine confirmed my memory of what it used to look like (
https://web.archive.org/web/20160314202927/http://elm-lang.org/examples).


Are these examples gone for good? Are the language features they relied on 
no longer available?

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.