workspace
stringclasses
4 values
channel
stringclasses
4 values
text
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
elmlang
general
Hello all! I'm not sure there are a lot of people on <#C0JA8SJ2V|elm-reactor>, so I'm sharing this here, if anyone has an answer :slightly_smiling_face:
2019-02-11T03:36:47.003100
Shaunta
elmlang
general
This must be due to the Markdown library changing `sanitize` to be True as default since 0.19. Which means all html gets escaped
2019-02-11T03:54:24.004800
Lea
elmlang
general
You could file an issue, this is where you want to use `toHtmlWith` <https://github.com/elm/compiler/blob/master/reactor/src/Index/Skeleton.elm#L37>
2019-02-11T03:55:42.005900
Lea
elmlang
general
Thanks <@Lea>, I'll have a look and try to open an issue :slightly_smiling_face:
2019-02-11T04:12:50.006000
Shaunta
elmlang
general
Hum, not sure issues are the good way to go, the contribution guidelines indicates that it's for bugs only, so I'll maybe make a Discourse post later today
2019-02-11T04:25:30.006200
Shaunta
elmlang
general
Hello
2019-02-11T04:44:31.006500
Sadie
elmlang
general
I reach this error with Elm 0.19 ``` Success! Compiled 2 modules. elm: Map.!: given key is not an element in the map CallStack (from HasCallStack): error, called at ./Data/Map/Internal.hs:610:17 in containers-0.5.11.0-K2TDqgYtGUcKxAY1UqVZ3R:Data.Map.Internal ```
2019-02-11T04:44:50.007000
Sadie
elmlang
general
An undocumented change of behaviour could be seen as a bug. Also html is valid in Markdown. That said, discourse seems fine as well :slightly_smiling_face: . I think html is also disabled on <http://package.elm-lang.org|package.elm-lang.org>, so it’s probably be deliberate.
2019-02-11T04:45:06.007100
Lea
elmlang
general
For some reasons running elm make kinda fixed it
2019-02-11T04:46:28.007500
Sadie
elmlang
general
That's a known issue. People say running `elm make` without `--debug` fixes it so it might be your case as well.
2019-02-11T04:50:24.008000
Lynne
elmlang
general
Yes, but then I cannot use the debugger anymore :confused:
2019-02-11T05:37:55.008400
Sadie
elmlang
general
yes, its a real problem for many many 0.19 users.
2019-02-11T06:16:55.009000
Lynn
elmlang
general
there is a patched compiler via <https://github.com/tomstejskal/compiler>
2019-02-11T06:17:03.009300
Lynn
elmlang
general
Evan has stated that he’s working on a bunch of compiler bugs, but I’ve never seen a timetable for the fixes to land
2019-02-11T06:17:39.010000
Lynn
elmlang
general
Bug fixes in Elm do come out asap and not with the next version right? :sweat_smile:
2019-02-11T07:09:36.010300
Renda
elmlang
general
Version as in Elm 0.20
2019-02-11T07:09:44.010500
Renda
elmlang
general
I’d rather leave that to ‘inner-circle’ people to answer as I’m not sure
2019-02-11T07:12:50.010700
Lynn
elmlang
general
Just based on past-precedent, there are sometimes 0.x.1 bug fixes. There may well be a 0.19.1 that’s just bug fixes.
2019-02-11T07:18:17.012100
Cammy
elmlang
general
Speaking of the compiler, are there some up-to-date instructions on building the `elm` binaries ourselves? E.g. so I could try <https://github.com/elm/compiler/pull/1850>
2019-02-11T07:19:48.012900
Garnett
elmlang
general
None
2019-02-11T07:22:45.013800
Lynn
elmlang
general
Thank you <@Lynn>!
2019-02-11T07:23:28.014300
Garnett
elmlang
general
Starred too :wink:
2019-02-11T07:23:56.014400
Garnett
elmlang
general
don’t forget to use `.lazy` :wink:
2019-02-11T07:27:09.015100
Lynn
elmlang
general
hmm, it *can* be a bit frustrating not to be able to use `Url` as a key for dicts^^'
2019-02-11T07:33:33.015600
Emilee
elmlang
general
<@Emilee> you can use <https://package.elm-lang.org/packages/pzp1997/assoc-list> for that :slightly_smiling_face:
2019-02-11T07:47:47.016200
Nana
elmlang
general
seems like access times are pretty meh for that, though?
2019-02-11T07:52:28.016500
Emilee
elmlang
general
and insertions
2019-02-11T07:52:50.016700
Emilee
elmlang
general
i guess i can just use it and see if it's a problem
2019-02-11T07:54:00.017500
Emilee
elmlang
general
<@Emilee> there's also this one which should be faster: <https://package.elm-lang.org/packages/turboMaCk/any-dict>
2019-02-11T07:54:02.017800
Nana
elmlang
general
most of our operations are probably going to be filters anyway
2019-02-11T07:54:09.018100
Emilee
elmlang
general
however it stores a function in the model, which I think breaks debugging
2019-02-11T07:54:30.018600
Nana
elmlang
general
yeah, the problem with any-dict is that it stores the comparator in the datastructure afair. that's not so nice for storing in the model
2019-02-11T07:55:02.019500
Emilee
elmlang
general
yeah^^
2019-02-11T07:55:07.019700
Emilee
elmlang
general
and probably hot-reloading too
2019-02-11T07:55:16.020000
Emilee
elmlang
general
but if your dict isn't more than a few hundred items I doubt the performance matters
2019-02-11T07:55:18.020200
Nana
elmlang
general
you're probably right
2019-02-11T07:55:30.020500
Emilee
elmlang
general
i'll use assoc-list for now and see where that takes me :slightly_smiling_face:
2019-02-11T07:55:48.020900
Emilee
elmlang
general
is there a way to use elm19 packages inside a elm18 project? maybe there's a transpiler or so?
2019-02-11T08:09:44.023200
Earnestine
elmlang
general
<@Le> there is not
2019-02-11T08:12:20.024100
Earlean
elmlang
general
<@Earnestine> depending on how hard the transition would be, maybe you'd be better migrating to 0.19 altogether ; else you could consider getting an earlier version of the module(s) you need, maybe copy some of the later functionalities and adapt them or something.
2019-02-11T08:18:12.026100
Antonette
elmlang
general
What is your use case though? Maybe we can give a better (less generic) advice depending on the situation.
2019-02-11T08:18:36.026600
Antonette
elmlang
general
or maybe the package has a `0.18` version :slightly_smiling_face:
2019-02-11T08:19:09.026900
Maida
elmlang
general
well the use case is converting a very large code base to 19 :slightly_smiling_face: And of course it would be preferable to do this in chunks. So the idea was to factor out parts into a elm19 library, and then (if there was the magic transpiler) already use this from our 18 project.
2019-02-11T08:26:20.028900
Earnestine
elmlang
general
Have anyone implemented an algorithm to generate pagination items? It seems like a common problem (When there are many pages so you only want to show some of them), but elm bootstrap doesn't seem to have implemented it.
2019-02-11T08:34:32.033900
Luba
elmlang
general
This may help: <https://discourse.elm-lang.org/t/backslide-scripts-for-incremental-0-19-upgrade/1819/2>
2019-02-11T08:45:43.034400
Iona
elmlang
general
<@Luba> there are some packages if your search for "paginate"
2019-02-11T08:47:33.034900
Nana
elmlang
general
<@Nana> Seems like those are more complete packages with overlapping functionality of elm-bootstrap. Couldn't really find any with just the items generation. One of them generated bootstrap HTML though, so might use that one
2019-02-11T08:59:44.037300
Luba
elmlang
general
How am I supposed to use that?
2019-02-11T10:12:53.037700
Sadie
elmlang
general
Does anyone know of steps to compile the compiler from the source code?
2019-02-11T10:18:35.038200
Sadie
elmlang
general
Depends on the compiler
2019-02-11T10:18:44.038400
Niesha
elmlang
general
I'd like to try the patched version here: <https://github.com/elm/compiler/pull/1850>
2019-02-11T10:18:55.038800
Sadie
elmlang
general
#MissingDebug
2019-02-11T10:19:18.039000
Sadie
elmlang
general
<@Sadie>
2019-02-11T10:19:55.039100
Garnett
elmlang
general
The repository layout has changed a little, so the `.cabal` file is in the root
2019-02-11T10:20:42.039400
Garnett
elmlang
general
fwiw I haven’t successfully had `stack build` work
2019-02-11T10:20:57.039600
Garnett
elmlang
general
I'd go with installing stack (from <http://stackage.org|stackage.org>), `stack init` and then `stack install`
2019-02-11T10:21:19.040300
Niesha
elmlang
general
might work just fine
2019-02-11T10:21:23.040600
Niesha
elmlang
general
Thanks
2019-02-11T10:21:51.041300
Sadie
elmlang
general
There's currently a holy war going on between cabal (package manager) and stack (package set manager) in Haskell land :disappointed:
2019-02-11T10:21:53.041500
Niesha
elmlang
general
Anyone had it successfully compile on macOS, and wouldn’t mind uploading the binaries?
2019-02-11T10:22:31.042000
Garnett
elmlang
general
yeah... this is very helpful. I'm wondering why this is not published as a 18 package? Anything against me publishing these files as `elm-future19` or so?
2019-02-11T10:30:31.042300
Earnestine
elmlang
general
<https://elmlang.slack.com/archives/C0CJ3SBBM/p1549887765013800>
2019-02-11T10:33:04.042500
Sadie
elmlang
general
those instructions worked a charm for me. It makes 0.19 possible for us now, but still a lot of code to migrate
2019-02-11T10:37:12.042800
Lynn
elmlang
general
hmm, `Decode.datetime` doesn't work for me for some reason O.o ``` (3) Problem with the value at json.creationDate: "2019-02-11T15:33:22.588Z" Expecting a STRING ``` ^ shouldn't this be valid?
2019-02-11T10:38:42.043500
Emilee
elmlang
general
ah, it's not a valid format apparently
2019-02-11T10:39:58.044000
Emilee
elmlang
general
but still, the error message seems weird
2019-02-11T10:40:08.044300
Emilee
elmlang
general
it seems the thing i'm trying to parse is not a date string but a `Date` value... is there any way I can decode that without converting it to a string on the js side?
2019-02-11T10:41:05.044900
Emilee
elmlang
general
None
2019-02-11T10:43:38.045000
Earnestine
elmlang
general
<@Garnett> <@Sadie> I remember someone having a stack.yaml flying around, I'll see if I can find it - with that, it should be a breeze
2019-02-11T10:54:53.045800
Niesha
elmlang
general
<@Garnett> You need to use the proper resolver for stack, the most recent one doesn't work. I think lts-11.20 should work <https://lisplog.org/building_the_elm_compiler.html>
2019-02-11T10:55:52.045900
Denae
elmlang
general
I created a monster ``` dateDecoder : Decoder Time.Posix dateDecoder = Decode.value |&gt; Decode.andThen (\val -&gt; Encode.encode 0 val |&gt; Decode.decodeString Decode.datetime |&gt; Result.mapError Decode.errorToString |&gt; Decode.fromResult ) ```
2019-02-11T10:58:07.046500
Emilee
elmlang
general
Ah okay!
2019-02-11T11:02:17.046700
Garnett
elmlang
general
Hmmm I'm not sure I understand why that's necessary?
2019-02-11T11:02:37.047100
Carman
elmlang
general
Thanks. That is quite impressive.
2019-02-11T11:02:50.047400
Nicolasa
elmlang
general
You have a string coming in through a port?
2019-02-11T11:03:19.047600
Carman
elmlang
general
date as a string (but not a json string) parsed through ports, I'm guessing
2019-02-11T11:05:19.048400
Huong
elmlang
general
anyway
2019-02-11T11:06:22.049000
Huong
elmlang
general
that still looks equivalent to `dateDecoder = Decode.dateTime`
2019-02-11T11:06:40.049400
Huong
elmlang
general
&gt; not a date string but a `Date` value... Ah, should've read up
2019-02-11T11:07:46.049800
Huong
elmlang
general
hmmm I didn't realize date objects were valid `Value`s?
2019-02-11T11:09:37.050500
Carman
elmlang
general
Anything is a valid `Value` if it's coming through a port
2019-02-11T11:09:56.050900
Huong
elmlang
general
I see. But it's unusable unless you stringify it, hence that `Encode.encode`?
2019-02-11T11:11:21.051700
Carman
elmlang
general
Hey folks! I'm new to Elm, just installed it today. What do you think about <http://package.elm-lang.org|package.elm-lang.org> being blocked in Russia? It's some kind of blocker for new users. Of course we can all use VPNs and proxies but...
2019-02-11T11:15:23.053300
Candance
elmlang
general
Theres not a lot that can be done about it I believe
2019-02-11T11:16:19.053800
Agustin
elmlang
general
Its due to the blocking of a large part of AWS in order to disable telegram
2019-02-11T11:17:02.055000
Agustin
elmlang
general
AFAIK
2019-02-11T11:17:03.055400
Agustin
elmlang
general
I may be misinformed
2019-02-11T11:17:12.055600
Agustin
elmlang
general
I see two ways of solving this issue: 1. Move to non-blocked IP inside of Amazon/DigitalOcean/whatever. Lot's of IP is still available and they (government) unblocked 20 millions of Amazon IPs recently. 2. Build local mirrors for such "problematic" regions as Russia, China, Iran, etc
2019-02-11T11:21:03.057800
Candance
elmlang
general
By the way, Telegram is still working fine :slightly_smiling_face:
2019-02-11T11:21:43.058500
Candance
elmlang
general
The attempt to block Telegram then :stuck_out_tongue:
2019-02-11T11:22:04.058900
Agustin
elmlang
general
1. Is difficult, as it relies on trial and error to get an ip that isn’t blocked 2. Requires some one to volunteer to do so
2019-02-11T11:22:22.059400
Agustin
elmlang
general
Everyone agrees it’s sub optimal :confused:
2019-02-11T11:22:48.059800
Agustin
elmlang
general
Is there a way to "plug-n-play" a mirror or we need to develop a solution?
2019-02-11T11:23:21.060500
Candance
elmlang
general
I think you’d need some way to indicate the dns
2019-02-11T11:24:30.061500
Agustin
elmlang
general
Also list of mirrors should be built in elm binary, and then it should select one with minimal ping
2019-02-11T11:24:56.061800
Candance
elmlang
general
I believe Debian works like this
2019-02-11T11:25:15.062400
Candance
elmlang
general
Yes I think you’d have to do something like that
2019-02-11T11:25:19.062500
Agustin
elmlang
general
Another problem is Elm is basically a one person project, so we are limited by Evans bandwidth
2019-02-11T11:26:30.063700
Agustin
elmlang
general
In short, vpn is easier :slightly_smiling_face:
2019-02-11T11:27:16.064100
Agustin
elmlang
general
What do you mean? Indicate dns?
2019-02-11T11:27:58.064200
Candance