[elm-discuss] Re: More pattern matching

2017-08-24 Thread David Legard
Thanks, that's rather a clever little package. The maintainer says that guards were in the Elm compiler at one time, but then removed as being unfamiliar and largely unnecessary. It's nice to have this small (23-line) implementation around, though. -- You received this message because you are

[elm-discuss] Re: More pattern matching

2017-08-23 Thread Sebastian Porto
Maybe this package http://package.elm-lang.org/packages/Fresheyeball/elm-guards/latest ? > > -- 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+

[elm-discuss] Re: More pattern matching

2017-08-22 Thread David Legard
Thanks for the suggestions. Not visually elegant, perhaps, but conceptually quite neat and satisfying. I shall incorporate these ideas into my app. Thanks again. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group an

[elm-discuss] Re: More pattern matching

2017-08-22 Thread Ilias Van Peer
If you're actually parsing a string, you may also want to look into one of the various parsing libraries like `elm-tools/parser`. If you're willing to give a few more details about the format of those strings, I'm sure people here (and on slack) would be more than willing to give you a hand in