workspace
stringclasses 4
values | channel
stringclasses 4
values | text
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
|
---|---|---|---|---|
elmlang | general | In the past, elm-format would rejigger that `data = ...` clause to be pretty and compile | 2019-02-23T13:03:56.168400 | Santina |
elmlang | general | I guess it does compile correctly if I put it all on one line. | 2019-02-23T13:04:24.168700 | Santina |
elmlang | general | You just can’t have the comma immediately after the newline. | 2019-02-23T13:05:44.169200 | Dede |
elmlang | general | Put a space in front of it, and elm-format will take over from there. | 2019-02-23T13:05:51.169500 | Dede |
elmlang | general | Just got it going, for some reason I have to now explicitly tell VSCode about elm-format with `"elm.formatCommand": "./node_modules/.bin/elm-format"` | 2019-02-23T13:06:14.169800 | Santina |
elmlang | general | for some reason that i don't understand, my previous project does not require that. | 2019-02-23T13:06:47.170300 | Santina |
elmlang | general | does anyone have any idea on how I can solve this: <https://github.com/NoRedInk/elm-json-decode-pipeline/issues/9> ? | 2019-02-23T13:26:45.170600 | Vilma |
elmlang | general | I haven't encountered that error yet. Just to be sure - ~/.elm isn't mapped, right?
The edge case I'm a little worried about is having `elm-stuff` from the host VM having to correspond to `~/.elm` on the guest. This shouldn't be a problem is the `elm-stuff` on the host is never touched (i.e. _all_ `elm` interactions happen exclusively on the guest), but you never know. | 2019-02-23T13:34:39.170700 | Huong |
elmlang | general | In other words, does clearing `elm-stuff` on the host (and perhaps `~/.elm` on the guest) help, or is this a persistent issue? | 2019-02-23T13:35:13.171500 | Huong |
elmlang | general | Ah yeah if you have elm-format, I think you can put commas etc. on the beginning of a line, and it'll fix it, but if you don't, you get a compiler error | 2019-02-23T13:36:47.173400 | Nana |
elmlang | general | Since 0.19 I have issues with auto format on save both in Atom and VS Code | 2019-02-23T13:54:42.173900 | Malinda |
elmlang | general | I just run a batch script once in a while for reformatting all of my files. | 2019-02-23T13:55:23.174100 | Malinda |
elmlang | general | Or sometimes call elm-format from the terminal of Atom | 2019-02-23T13:55:41.174300 | Malinda |
elmlang | general | I'm on Windows 7 though | 2019-02-23T13:56:05.174500 | Malinda |
elmlang | general | I'm on windows 10 and 0.19.. I also had problems. But after changing the "Format On Save Timeout" to 5000ms in vscode settings it has been working on every sngle save for a few months :slightly_smiling_face: | 2019-02-23T13:58:07.174700 | Monnie |
elmlang | general | hmm let me try that | 2019-02-23T13:58:46.174900 | Malinda |
elmlang | general | I don't even see that setting :open_mouth: | 2019-02-23T14:01:29.175100 | Malinda |
elmlang | general | None | 2019-02-23T14:01:38.175300 | Malinda |
elmlang | general | I get this error on saving: | 2019-02-23T14:02:34.175700 | Malinda |
elmlang | general | None | 2019-02-23T14:02:43.175900 | Malinda |
elmlang | general | Here is mine.. not elm format settings.. but vs code settings | 2019-02-23T14:03:05.176300 | Monnie |
elmlang | general | im in vs code... and using elm-format globally installed by npm... | 2019-02-23T14:04:29.176700 | Monnie |
elmlang | general | I installed it globally ofc | 2019-02-23T14:04:45.176900 | Malinda |
elmlang | general | but Atom (and VS code) does not seem to find the executable otherwise but specifying full path | 2019-02-23T14:05:11.177100 | Malinda |
elmlang | general | <@Huong> Not so much name-dropping as knowing who to go to for a few more stories/back up on why Elm is the right choice for a plethora of use cases | 2019-02-23T14:32:41.178000 | Charley |
elmlang | general | Showing growth always helps! | 2019-02-23T14:33:01.178200 | Charley |
elmlang | general | Oh, yeah, I didn't mean to use that as a pejorative term - showing that established organizations use Elm is never a bad idea! :slightly_smiling_face: | 2019-02-23T14:34:18.178400 | Huong |
elmlang | general | I'm trying to build the elm compiler and `cabal build` says "can't find source for Elm/PerUserCache" | 2019-02-23T17:29:04.179900 | Karan |
elmlang | general | has anyone run into this? | 2019-02-23T17:29:21.180200 | Karan |
elmlang | general | <#C0VHPC4F3|compiler> is probably a better channel for this kind of question. As a general note - `master` isn't stable - you might have better luck building the 0.19.0 tag | 2019-02-23T17:30:11.180300 | Huong |
elmlang | general | ok, thank you | 2019-02-23T17:33:59.180500 | Karan |
elmlang | general | I want to publish an elm package | 2019-02-24T02:11:34.181000 | Mozella |
elmlang | general | How should I structure the json? | 2019-02-24T02:11:43.181400 | Mozella |
elmlang | general | is there any guide? | 2019-02-24T02:11:46.181600 | Mozella |
elmlang | general | Have you seen this <https://github.com/elm/compiler/blob/master/docs/elm.json/package.md> ? | 2019-02-24T02:23:32.181700 | Lea |
elmlang | general | Okay, so now I am at the point where it is asking me to tag my release | 2019-02-24T02:51:37.182400 | Mozella |
elmlang | general | I ran the commands that the command line recommended and I see a "release" on github | 2019-02-24T02:52:07.183000 | Mozella |
elmlang | general | aaand I figured it out | 2019-02-24T02:56:15.183200 | Mozella |
elmlang | general | <https://github.com/bowbahdoe/elm-history/releases> | 2019-02-24T02:57:26.183400 | Mozella |
elmlang | general | Is this a bug? <https://ellie-app.com/4Pj7WpKzTHKa1> The iframe embedded through the markdown package always reloads if you run any update | 2019-02-24T03:49:03.185000 | Lea |
elmlang | general | Keying the node makes no difference | 2019-02-24T03:49:45.185500 | Lea |
elmlang | general | <https://package.elm-lang.org/packages/bowbahdoe/elm-history/latest/> | 2019-02-24T03:50:11.186100 | Mozella |
elmlang | general | Embedding with `iframe [] []` works fine | 2019-02-24T03:50:21.186500 | Lea |
elmlang | general | (happy for myself) | 2019-02-24T03:50:22.186600 | Mozella |
elmlang | general | <@Lea> because you're just inserting a string of HTML the virtual DOM doesn't know about it so it can't do the diffing that it would normally do | 2019-02-24T03:52:33.187500 | Earlean |
elmlang | general | I expected keying the node to would prevent this behavior. Since Markdown.toHtml returns Html msg, I also expect it to behave like a Virtual Dom node | 2019-02-24T03:58:19.189500 | Lea |
elmlang | general | (I understand why it doesn’t) | 2019-02-24T03:58:42.190000 | Lea |
elmlang | general | Does making it lazy help? | 2019-02-24T04:16:30.190800 | Huong |
elmlang | general | Nope | 2019-02-24T04:20:11.191000 | Lea |
elmlang | general | If I read this correctly, it should also compare the provided String <https://github.com/elm-explorations/markdown/blob/1.0.0/src/Elm/Kernel/Markdown.js#L37> | 2019-02-24T04:22:50.192000 | Lea |
elmlang | general | But Virtual dom ‘custom nodes’ compares the nodes before it compares the diff <https://github.com/elm/virtual-dom/blob/1.0.2/src/Elm/Kernel/VirtualDom.js#L817> | 2019-02-24T04:28:46.192400 | Lea |
elmlang | general | Which will always be true, because of the creation of a new node by `_Markdown_render` <https://github.com/elm-explorations/markdown/blob/1.0.0/src/Elm/Kernel/Markdown.js#L33> | 2019-02-24T04:29:43.192600 | Lea |
elmlang | general | Right. So easy way out - wrapping it in a lazy div :sweat_smile: this doesn't sound intentional, though - probably fair to log a bug on the markdown repo :thinking_face: | 2019-02-24T04:58:24.193600 | Huong |
elmlang | general | K, I’ll file a bug, thanks for taking a look! | 2019-02-24T05:17:54.193900 | Lea |
elmlang | general | Hold on, it should work with lazy :neutral_face: | 2019-02-24T05:22:35.194100 | Huong |
elmlang | general | <https://github.com/elm/virtual-dom/blob/1.0.2/src/Elm/Kernel/VirtualDom.js#L733> which should end up in there | 2019-02-24T05:22:54.194300 | Huong |
elmlang | general | <https://ellie-app.com/4PkzsFfMLksa1>
<https://ellie-app.com/4PkBNVJsKnka1> | 2019-02-24T05:24:14.194500 | Huong |
elmlang | general | appears to work, as long as all params are constants (which makes sense, since that's how lazy is supposed to work) | 2019-02-24T05:24:42.194700 | Huong |
elmlang | general | Ah you’re right | 2019-02-24T05:25:00.194900 | Lea |
elmlang | general | I did <https://ellie-app.com/4PkDx6XdYq6a1> | 2019-02-24T05:26:41.195100 | Lea |
elmlang | general | ```(Markdown.toHtmlWith
{ defaultOptions | sanitize = False }
[]
)``` won't evaluate to a referentially equal result every time it runs, though | 2019-02-24T05:29:59.195300 | Huong |
elmlang | general | in other words, `lazy (fn arg) otherArg` and `lazy2 fn arg otherArg` do different things. Additionally, `{ defaultOptions | sanitize = False }` also evaluates to a new record every time it is evaluated, so that also doesn't quite work | 2019-02-24T05:31:33.195500 | Huong |
elmlang | general | K cool | 2019-02-24T05:33:12.195700 | Lea |
elmlang | general | Still file a bug? | 2019-02-24T05:37:01.195900 | Lea |
elmlang | general | It seems to work the way _I_ would expect it to, but if that doesn't match your expectations, it's still fair to file a bug - perhaps we need to explain how `lazy` and `Markdown.toHtml*` work together better | 2019-02-24T05:43:52.196100 | Huong |
elmlang | general | A note in the `Markdown` docs might be nice indeed | 2019-02-24T05:47:46.196300 | Lea |
elmlang | general | I’m always having a hard time figuring out referential equality | 2019-02-24T05:49:13.196600 | Lea |
elmlang | general | Mostly because I never took the time to look it up _and_ understand it :sweat_smile: | 2019-02-24T05:50:12.196800 | Lea |
elmlang | general | Yeah, it's a very weird case. Knowing the implementation of things, it's rather predictable, but I can't think of a very simple guideline that doesn't have a whole bunch of exceptions. Like "expressions evaluate to new values" isn't universally true - `identity foo` evaluates to something that is referentially equal to `foo`. "Only top level values" isn't true either - things could perfectly well come from your model and work just fine. Hm. This is a tough problem :sweat_smile: | 2019-02-24T06:13:28.197000 | Huong |
elmlang | general | Ye, that’s what I’m missing, it’ll might end up being an intuition thing at some point after seeing a lot of cases | 2019-02-24T06:33:34.197400 | Lea |
elmlang | general | Looks pretty nice! API seems pretty clean and readable | 2019-02-24T09:51:24.197800 | Janiece |
elmlang | general | And :thumbsup: for taking the time to write good docs | 2019-02-24T09:51:30.198000 | Janiece |
elmlang | general | Did you take a look at existing packages like <https://package.elm-lang.org/packages/elm-community/undo-redo/latest/>? | 2019-02-24T09:52:10.198200 | Janiece |
elmlang | general | Hello. I’m encountering some performance problems when running `Browser.Dom.getElement` on about 30-40 elements using `Task.sequence`. It seems like Elm is scheduling all the tasks in the sequence to be run one at a time, one on every animationFrame. Can someone confirm or deny that? | 2019-02-24T12:32:06.201400 | Moriah |
elmlang | general | <@Moriah> the documentation says the tasks will be run in order one-by-one | 2019-02-24T12:49:03.202400 | Donella |
elmlang | general | I’ve read that as well. I just wasn’t sure that it would run them at the speed on 1 task per animationFrame. | 2019-02-24T12:50:51.203500 | Moriah |
elmlang | general | It basically means that for every 60 tasks that sequence I will have to wait an extra second for the resulting `Cmd` to finish, if it turns out that my assumptions are correct. | 2019-02-24T12:53:50.205200 | Moriah |
elmlang | general | The other package named elm-history has a pretty non open-source license
<https://github.com/iodevs/elm-history/blob/1.0.0/LICENSE> | 2019-02-24T14:51:20.205700 | Mozella |
elmlang | general | And that package, while it does do a good deal more than what my package does, exposes the internals of the type | 2019-02-24T14:53:18.205900 | Mozella |
elmlang | general | The benefit of an opaque type here is that i can treat it somewhat like an interface and potentially add optional features like size caps without breaking consumer (my) code | 2019-02-24T14:58:33.206100 | Mozella |
elmlang | general | That being said... I didn't really do my due dilligence | 2019-02-24T15:00:48.206500 | Mozella |
elmlang | general | Egg on my face | 2019-02-24T15:01:03.206700 | Mozella |
elmlang | general | I just saw the other elm-history plugin's restrictive license last night and was kind of... reactionary | 2019-02-24T15:01:51.206900 | Mozella |
elmlang | general | `elm make` is producing blank html pages, I’m running `0.19`. Anybody else experiencing this? I have no issue running `elm reactor` | 2019-02-24T15:30:37.207300 | Tamiko |
elmlang | general | do you have a `main` function? if there is no main, the elm compiler will not produce any output <@Tamiko> | 2019-02-24T15:59:25.208200 | Virgie |
elmlang | general | <@Moriah> `Task.sequence` will run a list of tasks one after another. `Browser.Dom.getElement` gives you a Task that waits for the next animation frame before querying the DOM. The behaviour of `Browser.Dom.getElement` is like that so that you can return it from `update` and have it act on an element that will be in the DOM after the next call to `view`. | 2019-02-24T21:49:47.213000 | Earlean |
elmlang | general | <@Moriah> doing `Browser.Dom.getElement` for 40 elements doesn't seem like a common use case, can you expand on what you're trying to achieve? | 2019-02-24T21:51:12.213900 | Earlean |
elmlang | general | Thank you for your reply. I’m working on a drag-and-drop thing. I use `getElement` to get the positions and dimensions of potential drop targets. | 2019-02-25T02:02:18.214300 | Moriah |
elmlang | general | I managed to work around the problem using ports. | 2019-02-25T02:04:30.214500 | Moriah |
elmlang | general | Hello! I published a second version of a package, but it is not listed in the version list. I used `elm bump`, tagged the commit, pushed it and did `elm publish`... What did I do wrong? | 2019-02-25T04:32:12.216400 | Elza |
elmlang | general | Might be cache related. What is the package? | 2019-02-25T04:34:01.216900 | Jin |
elmlang | general | <https://package.elm-lang.org/packages/adauguet/elm-spanned-string> | 2019-02-25T04:34:18.217100 | Elza |
elmlang | general | there should be a `1.0.1` | 2019-02-25T04:34:30.217400 | Elza |
elmlang | general | you can actually see it in the search | 2019-02-25T04:34:44.217800 | Elza |
elmlang | general | I’m seeing `1.0.1` there. | 2019-02-25T04:35:11.218200 | Jin |
elmlang | general | cache-related it was, sorry for asking | 2019-02-25T04:36:42.218600 | Elza |
elmlang | general | This question comes up every now and then. :slightly_smiling_face: | 2019-02-25T04:37:39.219500 | Jin |
elmlang | general | have any of you people had experience with using entity component systems for "databases"? We need a global datastore in our application that stores "needs". those can be in many different configurations, so it's hard to model the whole system with sum-types (they can be loaded, loading, failed to load, they can be owned or not owned, they can have different types, and, technically, multiple of them....) | 2019-02-25T07:36:32.222000 | Emilee |
elmlang | general | i'm trying to weigh how many guarantees i lose or gain by using this modeling method, vs how easy it is to use for developers | 2019-02-25T07:37:03.222800 | Emilee |
elmlang | general | also, there's the question of how composable selectors on this structure would be | 2019-02-25T07:38:54.223200 | Emilee |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.