workspace
stringclasses 4
values | channel
stringclasses 4
values | text
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
|
---|---|---|---|---|
elmlang | general | I can resolve <http://package.elm-lang.org|package.elm-lang.org> to 159.89.227.162, even can ping it, but can't `curl` it or open with browser | 2019-02-11T11:28:49.064400 | Candance |
elmlang | general | What you then elaborate on later | 2019-02-11T11:30:19.064700 | Agustin |
elmlang | general | You need someway for elm to know where the packages are | 2019-02-11T11:30:38.064900 | Agustin |
elmlang | general | yep^^' at least i'm not sure how else i could parse it. I'm just thankful the `toString` of `Date` seems safe | 2019-02-11T11:32:57.065100 | Emilee |
elmlang | general | Isn't it an opensource project? I believe we are all welcome to contribute :slightly_smiling_face: | 2019-02-11T11:34:05.065800 | Candance |
elmlang | general | It sounds like it might be better to stringify on the JS side of things? Then you have control over how the date gets serialized instead of hoping `Encode.encode` does the right thing for a JS date object. | 2019-02-11T11:36:46.066300 | Carman |
elmlang | general | yes, still there are multiple ways to contribute | 2019-02-11T11:36:57.066700 | Desire |
elmlang | general | I feel like evan has too many other repos that are not the compiler, like the packages website under only his hand | 2019-02-11T11:38:06.067800 | Desire |
elmlang | general | BDFL | 2019-02-11T11:38:51.068000 | Agustin |
elmlang | general | the problem there is that this date is deep within a data structure we use as redux state. i'm trying to build a parser that can take the verbatim redux state and convert it to a strongly typed elm record, so we can slowly switch our application state to elm | 2019-02-11T11:39:10.068100 | Emilee |
elmlang | general | not sure if that is really what BDFL is about | 2019-02-11T11:40:02.068900 | Desire |
elmlang | general | Benevolent Dictator For Life | 2019-02-11T11:40:33.069100 | Candance |
elmlang | general | like Guido in Python | 2019-02-11T11:40:43.069300 | Candance |
elmlang | general | by the way why all of the stuff is built with Haskell? I feel that it would be much simpler with Python, at least packages website | 2019-02-11T11:43:02.070600 | Candance |
elmlang | general | (I'm from procedural or OOP world) | 2019-02-11T11:44:42.072400 | Candance |
elmlang | general | <@Candance> well, since Elm is a ML-family language, and the compiler is written in Haskell, it makes sense that other stuff is written in those languages as well (plus that's what Evan knows I guess) | 2019-02-11T11:44:43.072500 | Nana |
elmlang | general | simple is subjective | 2019-02-11T11:45:06.073100 | Danika |
elmlang | general | Hey everyone, how often do you all add fields to records? Like, use the `{ myRecord | newField = 42 }` syntax? I haven't needed to use that in a long time, but I'm aware that I'm not using elm like most elm devs do. | 2019-02-11T11:49:10.074400 | Saran |
elmlang | general | You mean adding a new field? | 2019-02-11T11:50:45.075100 | Danika |
elmlang | general | Doesn't seem like something you'd want to do very often unless you were leaning into extensible records a lot, which isn't common | 2019-02-11T11:51:25.075600 | Danika |
elmlang | general | yeah, adding a new field | 2019-02-11T11:51:40.075800 | Saran |
elmlang | general | hmm I thought that wasn't allowed anymore | 2019-02-11T11:51:47.076300 | Nana |
elmlang | general | I'd expect it to be used heavily for the model? That most apps use a huge flat record as its state, and that people update fields using record update syntax, but not that people add fields dynamically | 2019-02-11T11:52:54.077700 | Saran |
elmlang | general | I've never tried it / needed to, but it does seem like something not very elm-like. | 2019-02-11T11:53:06.077900 | Danika |
elmlang | general | This seems *horrible* to be doing to your model. Every update your models type would change :') | 2019-02-11T11:53:36.078500 | Danika |
elmlang | general | fair enough, it doesn't seem to be supported in 0.19 anymore "The `a` record does not have a `y` field:" | 2019-02-11T11:53:45.078800 | Saran |
elmlang | general | eh, we've got type variables, right? :wink: | 2019-02-11T11:54:07.079300 | Saran |
elmlang | general | You can change them, but not add them I believe | 2019-02-11T11:54:23.080200 | Agustin |
elmlang | general | ok, nobody's using it, and I didn't notice for 8 months that support for them was removed | 2019-02-11T11:54:29.080600 | Saran |
elmlang | general | cool | 2019-02-11T11:54:31.080800 | Saran |
elmlang | general | <@Saran> yeah you can update records, and you can use extensible records for type signatures, but you can't add fields like that | 2019-02-11T11:54:31.080900 | Nana |
elmlang | general | Seems like if it was ever allowed, that it was just a consequence of how it handled record updating | 2019-02-11T11:54:31.081000 | Danika |
elmlang | general | I think it used to be possible, but no one used it, and it would make future garbage collection much harder, so it was removed | 2019-02-11T11:55:26.081800 | Nana |
elmlang | general | uuuuuh... what?
```
This argument is an anonymous function of type:
Skin -> Element.Element msg
But `Element` needs the 1st argument to be:
#Skin# -> Element.Element msg
``` | 2019-02-11T11:57:34.082200 | Emilee |
elmlang | general | oh, i get what's wrong. but the compiler message still makes no sense | 2019-02-11T12:00:15.082700 | Emilee |
elmlang | general | what was the problem? | 2019-02-11T12:04:03.082900 | Danika |
elmlang | general | Input translation output rotation | 2019-02-11T12:07:17.084500 | Agustin |
elmlang | general | The feature to add/remove fields to records was in Elm until 0.17 I believe. The reasoning for removing them as far as I remember was that it added quite a bit of complexity to the type checker and the implementation relied on JS prototype chains, the usage apparently wasn't very high so they opted to remove it. | 2019-02-11T12:07:46.085000 | Denae |
elmlang | general | ~> <https://github.com/elm/compiler/issues/985> | 2019-02-11T12:11:48.085500 | Denae |
elmlang | general | whoa, so I haven't used it since 0.17 then? | 2019-02-11T12:17:03.086200 | Saran |
elmlang | general | Elm actually wanted the whole upper signature to be `Skin` | 2019-02-11T12:17:13.086600 | Emilee |
elmlang | general | Which is to say, I forgot an argument | 2019-02-11T12:17:31.087100 | Emilee |
elmlang | general | Welcome back and wooooo! | 2019-02-11T13:22:02.087900 | Teddy |
elmlang | general | Does anyone know of an example of list items drag and drop reordering for mobile browsers (touch)? | 2019-02-11T13:26:47.088900 | Bebe |
elmlang | general | I’m so excited to be back. Should be back to spending a lot of time in Elm next week, once I finish this ruby tapas episode. | 2019-02-11T14:00:58.089300 | Hoyt |
elmlang | general | Awesome. I'll look forward to that too :wink: | 2019-02-11T14:03:29.089600 | Teddy |
elmlang | general | Working on an episode (probably a two-parter) on polymorphic custom attributes in rails, following some of the episodes on whole values. | 2019-02-11T14:07:21.091100 | Hoyt |
elmlang | general | i think `elm reactor` is a nice tool. However, once you need to add a port to your elm file, it's pretty much much useless, right?
Do you have some tricks what to do then before starting to setup a whole build process? | 2019-02-11T14:08:01.091800 | Earnestine |
elmlang | general | Check out parcel, supports elm out if the box | 2019-02-11T14:17:03.092400 | Danika |
elmlang | general | Ohhhh! Those will be fun. | 2019-02-11T14:20:50.092700 | Teddy |
elmlang | general | <https://www.npmjs.com/package/elm-live> is a way. | 2019-02-11T14:52:31.093500 | Velia |
elmlang | general | looks very nice and works here for elm19... however, I'd need it for 18 now, does anyone know how to make this work? | 2019-02-11T14:54:02.094200 | Earnestine |
elmlang | general | My own HTML5 D&D implementation works nice with this polyfill: <https://github.com/Bernardo-Castilho/dragdroptouch> | 2019-02-11T15:49:18.094500 | Lynne |
elmlang | general | norpan/elm-html5-drag-drop recommends using it also | 2019-02-11T15:49:56.094700 | Lynne |
elmlang | general | parcel works from 0.19 onwards I think but there is elm-live etc.(old versions will work with0.18) | 2019-02-11T16:22:33.096100 | Florencia |
elmlang | general | Thanks Sergey | 2019-02-11T17:08:24.096400 | Bebe |
elmlang | general | I found the norpan one, do you have a link for yours? | 2019-02-11T17:10:57.097100 | Bebe |
elmlang | general | Is it possible to import CSS file into Elm code, or somehow instruct a compiler to include it in the generated `index.html`? | 2019-02-11T18:02:29.098500 | Bernardina |
elmlang | general | You can use `Browser.element` as app root, build `js` bundle by your own and write down html file where you can include whatever you need | 2019-02-11T18:08:21.098600 | Van |
elmlang | general | not limited to Browser.element btw | 2019-02-11T18:32:01.098800 | Desire |
elmlang | general | Is `elm reactor` suitable for production - i.e. can it be used to serve files in production? | 2019-02-11T18:33:31.099500 | Bernardina |
elmlang | general | Or should I use some other HTML server | 2019-02-11T18:33:44.099800 | Bernardina |
elmlang | general | personally I would dump it to an html file and serve it via nginx, but if you’re okay with exposing the Reactor UI to anyone visiting your site, go right ahead. | 2019-02-11T18:40:25.101400 | Alleen |
elmlang | general | Just published a package (`jxxcarlson/elm-stat`) on the package manager. The README refers to an image. It shows up locally and also on Github. /But on the package manager there is a the "broken image" icon. Here is the relevant markdown text:
 | 2019-02-11T18:49:13.103600 | Jana |
elmlang | general | how would one go about decoding a Map: <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map> | 2019-02-11T18:53:58.104100 | Danika |
elmlang | general | <@Bernardina> I'd compile to index.html and then put it on <http://github.io|github.io>. If you don't really need any server side stuff that's pretty easy. | 2019-02-11T19:29:00.105400 | Lindsey |
elmlang | general | <@Danika> perhaps <https://package.elm-lang.org/packages/elm-community/json-extra/latest/Json-Decode-Extra#collection> will work. | 2019-02-11T19:52:18.106100 | Earlean |
elmlang | general | Hmm | 2019-02-11T19:54:43.106600 | Danika |
elmlang | general | Maps aren’t array-like unfortunately | 2019-02-11T19:55:29.106900 | Danika |
elmlang | general | I think I’m SOL/ | 2019-02-11T19:56:23.107100 | Danika |
elmlang | general | It wouldn’t be a problem but I’m dealing with some quite complex data structures that I don’t have much control over. I can call `toArray` on all necessary items directly but it’s going to make the js quite messy. Bummer ^^ | 2019-02-11T19:57:40.108300 | Danika |
elmlang | general | Markdown doesn't really specify how relative URLs should be handled. I've seen this happen on some other git sites besides GitHub, too. | 2019-02-12T00:32:06.109400 | Bert |
elmlang | general | How do you get a Map through to Elm land though? Ports with Json.Decode.Value? | 2019-02-12T00:34:01.110900 | Bert |
elmlang | general | You’d probably just need to get the go ahead from the NoRedInk guys, as a formality but I think that it should be fine | 2019-02-12T01:22:31.111000 | Iona |
elmlang | general | Yes | 2019-02-12T01:46:41.111500 | Danika |
elmlang | general | My implementation is not packaged and it is not better than norpan's package. It is just a direct implementation via event handlers which I did when I did not know that package existed. | 2019-02-12T02:52:09.111600 | Lynne |
elmlang | general | In my opinion, running `elm reactor` in production could be a security and performance risk. I would not do it. Use a web server that is scrutinized for security issues and optimized. | 2019-02-12T03:04:36.111900 | Velia |
elmlang | general | elm-grove / elm-github-install... both work only for elm18 currently. Any ideas which one of them is more likely to be migrated to 19 soon? | 2019-02-12T03:34:32.113500 | Earnestine |
elmlang | general | -- CORRUPT JSON ----------------------------------------------------------------
The elm.json for elm-community/list-extra 2.0.0 got corrupted somehow.
I removed it from my file cache, so if it was some transient error it should be
fixed if you try the same thing again. Please report this if it seems like an
Elm problem though! | 2019-02-12T03:34:58.113700 | Shirley |
elmlang | general | -- CORRUPT JSON ----------------------------------------------------------------
The elm.json for elm-community/list-extra 2.0.0 got corrupted somehow.
I removed it from my file cache, so if it was some transient error it should be
fixed if you try the same thing again. Please report this if it seems like an
Elm problem though! | 2019-02-12T03:35:39.114100 | Shirley |
elmlang | general | Sorry for the poor formatting, I'm trying to get it right but I'm new to slack. I keep getting the above error message when trying to install any package | 2019-02-12T03:36:12.115000 | Shirley |
elmlang | general | Latest version of `elm-community/list-extra` is 8.1.0, how come `elm` is trying to install 2.0.0? | 2019-02-12T03:41:14.115600 | Lynne |
elmlang | general | I don't think any of those will be updated. AFAIK the author does not use elm anymore.
There is this though if you cannot live with a monorepo:
<https://github.com/Skinney/elm-git-install> | 2019-02-12T03:41:40.116000 | Velia |
elmlang | general | Could you paste contents of your `elm.json` (in a thread please)? | 2019-02-12T03:41:50.116300 | Lynne |
elmlang | general | Sure, give me a minute or two for figuring out creating a thread. Thank you for your quick reply | 2019-02-12T03:44:54.117000 | Shirley |
elmlang | general | Here is a thread :slightly_smiling_face: | 2019-02-12T03:45:10.117200 | Lynne |
elmlang | general | Just hover mouse over message and you'll see an action pane to the right | 2019-02-12T03:45:32.117500 | Lynne |
elmlang | general | {
"type": "application",
"source-directories": [
"src"
],
"elm-version": "0.19.0",
"dependencies": {
"direct": {
"NoRedInk/elm-json-decode-pipeline": "1.0.0",
"elm/browser": "1.0.0",
"elm/core": "1.0.0",
"elm/html": "1.0.0",
"elm/json": "1.0.0",
"elm-community/list-extra": "8.1.0",
"mdgriffith/elm-ui": "1.1.0",
"ohanhi/keyboard": "1.0.0",
"stoeffel/editable": "2.0.1",
"tortus/elm-array-2d": "2.1.2"
},
"indirect": {
"elm/time": "1.0.0",
"elm/url": "1.0.0",
"elm/virtual-dom": "1.0.2"
}
},
"test-dependencies": {
"direct": {},
"indirect": {}
}
} | 2019-02-12T03:46:04.117700 | Shirley |
elmlang | general | Thank you :slightly_smiling_face: | 2019-02-12T03:46:10.118100 | Shirley |
elmlang | general | Oh, a lot of stuff | 2019-02-12T03:46:22.118300 | Lynne |
elmlang | general | So apparently some of your dependencies depends on some outdated version of `list-extra` | 2019-02-12T03:46:47.118500 | Lynne |
elmlang | general | Ahh, thanks! I hadn't thought of that, looks like I'll be going through my packages to see which one uses this outdated version | 2019-02-12T03:47:41.118700 | Shirley |
elmlang | general | Wait | 2019-02-12T03:47:51.118900 | Lynne |
elmlang | general | This tool does not see any conflict: <https://www.markuslaire.com/github/elm-dependencies-analyzer/> | 2019-02-12T03:48:27.119100 | Lynne |
elmlang | general | By the way, there are some rather outdated versions | 2019-02-12T03:50:19.119300 | Lynne |
elmlang | general | I would actually remove everything and start adding dependencies one-by-one from scratch if I were you | 2019-02-12T03:50:37.119500 | Lynne |
elmlang | general | mmm, alright I'll start with doing that, thanks! | 2019-02-12T03:50:58.119700 | Shirley |
elmlang | general | Well, there is no surprise Elm is saying that `elm.json` is corrupt for `list-extra 2.0.0` because there is no `elm.json` for that version of the package :slightly_smiling_face: | 2019-02-12T03:54:27.119900 | Lynne |
elmlang | general | It seems that there was something wrong with a package I tried to install. Using another fork of the package worked. Thanks for your suggestions :slightly_smiling_face: | 2019-02-12T04:07:53.120100 | Shirley |
elmlang | general | What was the package if I may ask? | 2019-02-12T04:08:22.120300 | Lynne |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.