workspace
stringclasses 4
values | channel
stringclasses 4
values | text
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
|
---|---|---|---|---|
elmlang
|
general
|
`elm-test init && elm-test` -> `The dependencies in your elm.json are not compatible. [...]` ??
|
2019-03-07T11:54:50.651200
|
Earnestine
|
elmlang
|
general
|
ok thanks
|
2019-03-07T11:55:16.651300
|
Oliver
|
elmlang
|
general
|
<@Earnestine> can you try `elm install elm/json` and see if that fixes it?
|
2019-03-07T11:57:41.652100
|
Huong
|
elmlang
|
general
|
hi, thanks for the tipp.. but it does not fix it...
|
2019-03-07T11:59:14.652900
|
Earnestine
|
elmlang
|
general
|
<@Earnestine> can you share your `elm.json`?
|
2019-03-07T12:02:13.653400
|
Huong
|
elmlang
|
general
|
also, what version of `elm-test` exactly?
|
2019-03-07T12:02:29.653700
|
Huong
|
elmlang
|
general
|
None
|
2019-03-07T12:03:09.653800
|
Earnestine
|
elmlang
|
general
|
version: `0.19.0-rev5`
|
2019-03-07T12:03:40.654200
|
Earnestine
|
elmlang
|
general
|
<@Earnestine> okay, you're facing a rather special compound issue.
- `elm/json` needs to be a direct dependency
- `elm-explorations/test` cannot be an indirect dependency
In this case, it's because `noahzgordon/elm-color-extra` has it as a dependency, though I don't quite know why. If you do `elm install elm/json` and then manually remove the indirect dependency, `elm-test` is happy. However, `elm install` will always add back that indirect dependency, so to get this working consistently, `noahzgordon/elm-color-extra` would need to drop `elm/explorations` as a dependency :thinking_face:
|
2019-03-07T12:27:11.658200
|
Huong
|
elmlang
|
general
|
<https://github.com/noahzgordon/elm-color-extra/pull/2> there's already an issue for it, I added a note on how this breaks stuff down the line
|
2019-03-07T12:28:29.658700
|
Huong
|
elmlang
|
general
|
<@Earnestine> seems like Noah's about to release that PR, so upgrading that package in a little while should help :)
|
2019-03-07T13:38:22.659100
|
Huong
|
elmlang
|
general
|
wow, thanks for the detailed response, I'll try this in a while..!
|
2019-03-07T13:41:47.659300
|
Earnestine
|
elmlang
|
general
|
Does anyone have a good gif illustrating the elm architecture?
|
2019-03-07T17:53:31.660100
|
Kris
|
elmlang
|
general
|
<https://media.giphy.com/media/it6W8D4FfvaPC/giphy.gif>
|
2019-03-07T17:57:43.660900
|
Wiley
|
elmlang
|
general
|
this one's pretty good
|
2019-03-07T17:57:48.661300
|
Wiley
|
elmlang
|
general
|
This one is not a gif, so not animated, but it’s floating around every now and then :slightly_smiling_face:
<https://github.com/w0rm/creating-a-fun-game-with-elm/blob/master/assets/the-elm-architecture1.jpg>
|
2019-03-07T17:58:12.661700
|
Jin
|
elmlang
|
general
|
Illustrated by <https://twitter.com/01k>
|
2019-03-07T17:58:43.661900
|
Jin
|
elmlang
|
general
|
Not a gif, but the slidedeck that <@Nikki> shared a while back has a click-by-click walk-through. I think this was Elm 0.18, so minor details have changed. Check slides 45-47:
|
2019-03-07T19:38:29.662100
|
Danna
|
elmlang
|
general
|
<https://docs.google.com/presentation/d/14rYuf7BzCZj8qjxGGRWpT1YVWdo_rG-FFiwNSEmFBV4/edit#slide=id.g29715b5cf0_0_189>
|
2019-03-07T19:38:31.662300
|
Danna
|
elmlang
|
general
|
Thanks a lot! That's pretty helpful
|
2019-03-07T19:49:26.662700
|
Kris
|
elmlang
|
general
|
Nice! This makes it very easy to understand how the runtime fits into the picture. :taco:
|
2019-03-07T20:53:36.663000
|
Albertine
|
elmlang
|
general
|
Here's a diagram I made, hope it's helpful! <https://incrementalelm.com/learn/architecture>
|
2019-03-07T23:09:21.664900
|
Sade
|
elmlang
|
general
|
How to handle optional with elm-json-pipeline ?
|
2019-03-08T03:55:54.666000
|
Sadie
|
elmlang
|
general
|
I tried
``` (Decode.field "notification" <|
Decode.oneOf
[ Decode.maybe decodeNotification
, Decode.succeed Nothing
]
)```
|
2019-03-08T03:56:02.666300
|
Sadie
|
elmlang
|
general
|
With no luck
|
2019-03-08T03:56:05.666500
|
Sadie
|
elmlang
|
general
|
I just eventually used elm-decode-pipeline... but out of curisosity it doesn't seems that simple
|
2019-03-08T04:03:05.667000
|
Sadie
|
elmlang
|
general
|
<@Sadie> `(Decode.maybe (Decode.field "notification" decodeNotification))`
|
2019-03-08T04:21:50.668000
|
Nana
|
elmlang
|
general
|
Oh yeah, I remember we already talked about that now
|
2019-03-08T04:26:03.668400
|
Sadie
|
elmlang
|
general
|
Thanks
|
2019-03-08T04:26:04.668600
|
Sadie
|
elmlang
|
general
|
In `elm-json-decode-pipeline` there is an `optional` function <@Sadie>
|
2019-03-08T05:14:25.670100
|
Lynne
|
elmlang
|
general
|
<@Lynne> Yes I know I was just asking out of curiosity
|
2019-03-08T05:25:29.670500
|
Sadie
|
elmlang
|
general
|
This image (IIRC created by <@Dorotha>) is probably the best visualization of TEA I've seen :heart:
|
2019-03-08T10:15:22.671400
|
Carman
|
elmlang
|
general
|
None
|
2019-03-08T10:15:40.671600
|
Carman
|
elmlang
|
general
|
This is not created by me. Kolja is the author <https://mobile.twitter.com/01k>
|
2019-03-08T10:37:29.673500
|
Dorotha
|
elmlang
|
general
|
Finally got round to upgrading our website to 0.19, half a day flew by super fast, and the half the bundle size disappeared too :slightly_smiling_face:
|
2019-03-08T11:00:12.674500
|
Kitty
|
elmlang
|
general
|
Does anybody remember languages other than Rust that took inspiration from Elm error messages?
|
2019-03-08T12:29:54.675700
|
Florencia
|
elmlang
|
general
|
I think there was some GCC 8 post but I can't find it and don't know if it mentioned Elm specifically...
|
2019-03-08T12:30:13.676200
|
Florencia
|
elmlang
|
general
|
Reasonml.
|
2019-03-08T12:33:51.676700
|
Cammy
|
elmlang
|
general
|
hi, `talqu@pc:[~/Projects/learn-elm/src]: elm make Main.elm` says I cannot find it though! Is there a typo? (edited)
it only works from the root dir: `elm make src/Main.elm`
what is happening here?
|
2019-03-08T12:51:54.677200
|
Dorine
|
elmlang
|
general
|
I think purescript as well
|
2019-03-08T12:53:47.677500
|
Kris
|
elmlang
|
general
|
<@Kris> Do you think there's a link acknowledging this?
|
2019-03-08T12:55:19.677700
|
Florencia
|
elmlang
|
general
|
<@Dorine> IIRC the compiler looks for `elm.json` to see which directories are `source_directories`, and exits early if it doesn't find it?
|
2019-03-08T12:59:54.681300
|
Florencia
|
elmlang
|
general
|
Not having had too much experience with parsing, and none with elm-parser, I’m wondering what the best way is to get going. Recommended tutorials?
What I need (ultimately) is something akin to a very minimal version of markdown. (Yes, I know about elm-markup, and the various markdown packages and they won’t cut it.)
|
2019-03-08T13:01:37.681600
|
Leoma
|
elmlang
|
general
|
Have you seen <https://www.youtube.com/watch?v=M9ulswr1z0E> ?
|
2019-03-08T13:03:13.681800
|
Dede
|
elmlang
|
general
|
(and/or were you in the room? ;-)
|
2019-03-08T13:03:21.682000
|
Dede
|
elmlang
|
general
|
Huh, Slack didn't unroll that. It's ""Demystifying Parsers" by Tereza Sokol"
|
2019-03-08T13:03:45.682200
|
Dede
|
elmlang
|
general
|
No and no. I know Tereza’s work. This looks good
|
2019-03-08T13:03:53.682400
|
Leoma
|
elmlang
|
general
|
I’ve heard clojure people comment on how much they like the Elm error messages, but don’t know if it’s an official thing they’re striving for.
|
2019-03-08T13:15:54.682600
|
Cammy
|
elmlang
|
general
|
i have started a basic elm template with `elm init`, and have "source-directories": `[ "src" ],` in my json file. However, inside the src dir executing `elm make` fails. That's is weird, without that i cant compile the file from the editor
|
2019-03-08T13:16:44.682800
|
Dorine
|
elmlang
|
general
|
yes, you need to run the compiler from the directory `elm.json` is in
|
2019-03-08T13:18:48.683000
|
Florencia
|
elmlang
|
general
|
The editor's Elm plugin should help you do that. What editor do you use?
|
2019-03-08T13:19:17.683200
|
Florencia
|
elmlang
|
general
|
emacs
|
2019-03-08T13:19:27.683400
|
Dorine
|
elmlang
|
general
|
im trying these basic things right now, and everything seems to work very nicely with emacs, except the compilation of the file and the generation of tags (which does not work either)
|
2019-03-08T13:20:33.683600
|
Dorine
|
elmlang
|
general
|
`jcollard/elm-mode` doesn't seem to work with 0.19 automatically, but setting this should help you: <https://github.com/jcollard/elm-mode/blob/27a96ae99c8573b3e2f38b35021b46b30189dda6/elm-util.el#L44-L49>
|
2019-03-08T13:23:28.683800
|
Florencia
|
elmlang
|
general
|
nice thanks
|
2019-03-08T13:24:14.684000
|
Dorine
|
elmlang
|
general
|
I'm seeing an interesting behavior with `Browser.Navigation.back`. When running the `Nav.back navKey 1` command, two URL change message are firing: one with the current URL, quickly followed by the previous URL in the browser history. Is this known/expected behavior?
|
2019-03-08T14:14:04.686200
|
Abel
|
elmlang
|
general
|
No, sorry
|
2019-03-08T14:18:32.686600
|
Kris
|
elmlang
|
general
|
Anyone know of the best datetime lib to use as of now for .19?
|
2019-03-08T16:00:04.687200
|
Broderick
|
elmlang
|
general
|
<@Broderick> `elm/time` does work quite well, ocassionally I go for a few functions from `waratuman/time-extra`
|
2019-03-08T16:02:52.687800
|
Florencia
|
elmlang
|
general
|
`justinmimbs/date` is perfect for when you want to represent just a date and not a point in time. `justinmimbs/time-extra` is also solid for helping with creating and modifying times. `ryannhg/date-format` for displaying times.
|
2019-03-08T16:24:07.689200
|
Lorilee
|
elmlang
|
general
|
The only ones I've used are `elm/time` and `ryannhg/date-format`. They've done everything I need (besides parsing ISO8601 strings)
|
2019-03-08T16:27:58.692300
|
Bert
|
elmlang
|
general
|
also this is useful: <https://github.com/elm/parser/blob/master/semantics.md>
|
2019-03-08T16:30:08.692400
|
Jarvis
|
elmlang
|
general
|
`rtfeldman/elm-iso8601-date-strings` is a good base for parsing ISO8601 strings if you only care about the canonical time (I had to vendor it because I care about local time)
|
2019-03-08T17:04:47.693100
|
Agustin
|
elmlang
|
general
|
Is there a way to optimise the DOM-ification of large lists in the view function? i.e. if you add one item to a list in the model, to have the view function not re-generate the entire list worth of (virtual) DOM elements.
|
2019-03-08T20:42:38.696200
|
Alia
|
elmlang
|
general
|
Actually it seems `Html.Keyed` might be the recommended solution here
|
2019-03-08T20:45:58.696900
|
Alia
|
elmlang
|
general
|
though technically this still requires a virtual DOM element to be created for each item, and a key comparison with each of the (actual) DOM elements
|
2019-03-08T20:54:29.698100
|
Alia
|
elmlang
|
general
|
i.e. it doesn't really understand an "insert"
|
2019-03-08T20:54:41.698500
|
Alia
|
elmlang
|
general
|
until it stumbles onto it whilst comparing keys
|
2019-03-08T20:55:19.698800
|
Alia
|
elmlang
|
general
|
`Html.Lazy` can be good if building the DOM is the expensive part, the gotcha is that it uses JS referential equality on the comparison, so you have to be careful to not to break that
|
2019-03-08T21:01:17.700400
|
Augustus
|
elmlang
|
general
|
in the case where you are modifying a list you won't be able to use `Lazy` on the list as a whole in most cases, but you can on the individual list items
|
2019-03-08T21:02:06.701100
|
Augustus
|
elmlang
|
general
|
and pair that with `Html.Keyed` to simplify things during diffing
|
2019-03-08T21:03:10.702000
|
Augustus
|
elmlang
|
general
|
yeah that sounds like a good approach
|
2019-03-08T21:05:40.702400
|
Alia
|
elmlang
|
general
|
it will do :slightly_smiling_face:
|
2019-03-08T21:05:51.702700
|
Alia
|
elmlang
|
general
|
That’s not true
|
2019-03-08T22:06:48.703500
|
Kris
|
elmlang
|
general
|
You can’t break stuff using lazy
|
2019-03-08T22:06:58.704000
|
Kris
|
elmlang
|
general
|
i think they are referring to invalidating lazy equality by doing things like creating a new object per render
|
2019-03-08T23:00:21.705000
|
Jarvis
|
elmlang
|
general
|
like repackaging downstream arguments into a `let ctx = { a = ..., b = ... } in` that is part of your Lazy equality comparison
|
2019-03-08T23:00:53.705700
|
Jarvis
|
elmlang
|
general
|
you can create pointless Lazy application if you don't understand the caveat
|
2019-03-08T23:02:54.706600
|
Jarvis
|
elmlang
|
general
|
can anyone tell me how I can get this into an anonymous function?
```
getChompedString <| succeed () |. chompUntil " "
```
|
2019-03-09T06:15:45.707500
|
Vilma
|
elmlang
|
general
|
it seems `\() -> getChompedString <| succeed () |. chompUntil " "` is wrong
|
2019-03-09T06:16:00.707900
|
Vilma
|
elmlang
|
general
|
<@Vilma> What arguments do you want this anonymous function to take?
|
2019-03-09T06:18:49.708600
|
Vashti
|
elmlang
|
general
|
Does elm-css incur any unreasonable performance hit?
|
2019-03-09T06:19:18.708800
|
Marlys
|
elmlang
|
general
|
I just want to insert it into a parser pipeline :thinking_face: so maybe it takes another parser?
|
2019-03-09T06:20:09.708900
|
Vilma
|
elmlang
|
general
|
hmm, could you maybe post more code showing how you'd use the anonymous function, so we can understand why you want to create it and what you want to do with it?
|
2019-03-09T06:26:52.709900
|
Vashti
|
elmlang
|
general
|
It's hard to say without knowing what you're comparing it to and what you consider unreasonable
|
2019-03-09T07:02:21.710100
|
Earlean
|
elmlang
|
general
|
hi, for those using emacs with elm-mode, how did you get generating tags working and also `elm-package-catalog` which gives this error `-map-indexed: Wrong type argument: listp, (1602/elm-feather . ["1.0.0" "1.0.1" "1.0.2" "2.0.0" "2.0.1" "2.1.0" "2.2.0" "2.3.0" "2.3.1" "2.3.2" ...])`
|
2019-03-09T10:34:53.712500
|
Dorine
|
elmlang
|
general
|
RE parsing…
I’m parsing something akin to markdown, where I’d like to allow nested //italic// **bold** __underline__ styles.
Seems I need backtrackable if I don’t know if or not I’ll find a matching /,_,* after some amount of content. Is that right? I can only “commit” to parsing an opening italic / if I know there will be a closing one. Otherwise I’ll treat the / as a literal /. For example.
Is that an appropriate use of backtrackable?
|
2019-03-09T14:54:16.714500
|
Leoma
|
elmlang
|
general
|
It's appropriate, but also exhibits the behavior that the docs warn for (O(n^2) time complexity in the worst case). I don't see a nice way around it here though. Maybe have a look at what other parsers do.
|
2019-03-09T15:41:23.715000
|
Virgie
|
elmlang
|
general
|
because basically if you first parse an opening token, then do a lot of work, and it turns out that there is no correct closing token, backtrackable will go all the way back and the "doing a lot of work" part is repeated.
|
2019-03-09T15:42:55.716700
|
Virgie
|
elmlang
|
general
|
One option is to decide what to do once you find a token that isn't allowed in the context of bolding something, and "unwrap" a level of context while inserting the appropriate textual token where the current level of context started. Not as easy as it sounds, but theoretically possible
|
2019-03-09T15:44:06.718000
|
Huong
|
elmlang
|
general
|
Well, it sounds like it’s not an inappropriate choice. I’ll probably go with it and do something like disallow styles to wrap past newlines. So worst case O(n^2) over a bunch of single lines should be OK. Thanks.
|
2019-03-09T18:24:12.720000
|
Leoma
|
elmlang
|
general
|
You could alternately just declare an unclosed token to be an error.
|
2019-03-09T19:57:39.721800
|
Dede
|
elmlang
|
general
|
I’m trying to use <@Granville>’s websocket library, but although its is in my elm.json, I keep getting ```The PortFunnels module has a bad import:
import PortFunnel```
|
2019-03-10T03:34:41.724900
|
Lynn
|
elmlang
|
general
|
that’s an import from PortFunnels.elm which I copied over from the example directory, per the instructions
|
2019-03-10T03:35:20.725600
|
Lynn
|
elmlang
|
general
|
` "billstclair/elm-port-funnel": "1.1.4",` is listed in my indirect dependencies
|
2019-03-10T03:36:27.725900
|
Lynn
|
elmlang
|
general
|
ok, so moving it to the direct dependencies fixed it
|
2019-03-10T03:39:37.726200
|
Lynn
|
elmlang
|
general
|
I don’t seem to be able to get any further than a willopen message
|
2019-03-10T04:43:29.726700
|
Lynn
|
elmlang
|
general
|
None
|
2019-03-10T04:43:34.726800
|
Lynn
|
elmlang
|
general
|
the websocket is not actually being opened. Any ideas?
|
2019-03-10T04:44:02.727400
|
Lynn
|
elmlang
|
general
|
hello there, is it possible somehow to ignore the end of uri during parsing? currently I have the next function:
```
gitHubInfo : Parser (String -> String -> Int -> a) a
gitHubInfo =
string </> string </> s "pull" </> int
```
but I want that it will parse any link, which starts with this pattern, not only exactly like in the patter. Is it possible to write something like `string </> string </> s "pull" </> int </> whatever` ?
|
2019-03-10T09:45:50.730300
|
Carroll
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.