workspace
stringclasses
4 values
channel
stringclasses
4 values
text
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
elmlang
general
I’d love to hear what folks think :grin:
2019-04-02T20:18:11.305900
Lakita
elmlang
general
I use JWT tokens
2019-04-02T21:39:05.306000
Jana
elmlang
general
Good point — the Earth example puts this in context
2019-04-02T21:39:47.306200
Jana
elmlang
general
Is it possible to expose a constructor without exposing the type?
2019-04-03T01:03:17.306700
Nga
elmlang
general
you can expose a function that creates the type, but not the constructors that are part of the type.
2019-04-03T01:07:11.307400
Lindsey
elmlang
general
<@Millie> oh what I meant was, should I use an iframe and render the entire app? or build the elm app and copy it into each project? Or maybe there are other ways I don't know about.
2019-04-03T02:03:19.307500
Chin
elmlang
general
Hey, I was using VScode with <https://github.com/Krzysztof-Cieslak/vscode-elm> for elm 0.18, but after upgrading to 0.19 errors in my code editor are not formatted. Any suggestions how to fix that or recommendation for some other editor/package for 0.19? Thank you
2019-04-03T02:39:30.309600
Selena
elmlang
general
Not sure, but I can at least say it works for me
2019-04-03T02:44:24.309700
Nana
elmlang
general
And I highly recommend any JetBrains IDE, it has the best Elm plugin
2019-04-03T02:45:15.309900
Nana
elmlang
general
Switched from VSCode to it
2019-04-03T02:45:28.310100
Nana
elmlang
general
You can use IntelliJ Community Edition which is free
2019-04-03T02:45:57.310300
Nana
elmlang
general
Depends on the the application, what's "outside" and what you're trying to do. In general a `div` is fine for Elm.
2019-04-03T02:53:47.310500
Millie
elmlang
general
i keep forgetting can only the elm repos define new infix operators or can elm-community also do it?
2019-04-03T02:59:42.311500
Desire
elmlang
general
can't find any mention of elm-community in the compiler, so it seems to just be the elm repos
2019-04-03T03:01:28.312100
Desire
elmlang
general
it's elm and elm-explorations
2019-04-03T03:03:24.312500
Desire
elmlang
general
forgot about that namespace
2019-04-03T03:03:32.312800
Desire
elmlang
general
IIRC only `elm` repos can define infix operators, `elm-exploration` can contain kernel code.
2019-04-03T03:09:16.313700
Jin
elmlang
general
oh, I did think that would be the same rule, but makes things easier for me
2019-04-03T03:18:32.314300
Desire
elmlang
general
Yes, I might be wrong. But as of now there are only binary operators defined in `elm` packages.
2019-04-03T03:25:54.315400
Jin
elmlang
general
how did you check that?
2019-04-03T03:33:11.315800
Desire
elmlang
general
I’m working on a updates for elm-search and have an index of all exposed things in all published packages at hand.
2019-04-03T03:37:27.317300
Jin
elmlang
general
I'll try it out thank you!
2019-04-03T03:39:39.317400
Selena
elmlang
general
So if it's a div, then that means I need to copy the app into every project whenever a new version is released. Right?
2019-04-03T03:41:07.317600
Chin
elmlang
general
As opposed to an iframe that is always up to date.
2019-04-03T03:41:19.317800
Chin
elmlang
general
can you get me a list of all infixes used?
2019-04-03T03:45:42.318300
Desire
elmlang
general
this is my current one <https://github.com/Razzeee/tree-sitter-elm/blob/add-lexer/grammar.js#L619-L642>
2019-04-03T03:46:46.318600
Desire
elmlang
general
Sure. Just be careful with the ones starting with `/` :wink: ``` [ "elm/core/1.0.2/Basics/&amp;&amp;", "elm/core/1.0.2/Basics/*", "elm/core/1.0.2/Basics/+", "elm/core/1.0.2/Basics/++", "elm/core/1.0.2/Basics/-", "elm/core/1.0.2/Basics//", "elm/core/1.0.2/Basics///", "elm/core/1.0.2/Basics//=", "elm/core/1.0.2/Basics/&lt;", "elm/core/1.0.2/Basics/&lt;&lt;", "elm/core/1.0.2/Basics/&lt;=", "elm/core/1.0.2/Basics/&lt;|", "elm/core/1.0.2/Basics/==", "elm/core/1.0.2/Basics/&gt;", "elm/core/1.0.2/Basics/&gt;=", "elm/core/1.0.2/Basics/&gt;&gt;", "elm/core/1.0.2/Basics/^", "elm/core/1.0.2/Basics/|&gt;", "elm/core/1.0.2/Basics/||", "elm/core/1.0.2/List/::", "elm/parser/1.1.0/Parser.Advanced/|.", "elm/parser/1.1.0/Parser.Advanced/|=", "elm/parser/1.1.0/Parser/|.", "elm/parser/1.1.0/Parser/|=", "elm/url/1.0.0/Url.Parser/&lt;/&gt;", "elm/url/1.0.0/Url.Parser/&lt;?&gt;" ] ```
2019-04-03T03:57:33.318700
Jin
elmlang
general
Looks like your list
2019-04-03T03:59:51.318900
Jin
elmlang
general
yep, seems like i got all. the ones used multiple times got me for a sec
2019-04-03T04:53:17.319400
Desire
elmlang
general
looking for a good datepicker, currently leaning towards <https://package.elm-lang.org/packages/CurrySoftware/elm-datepicker/latest/> though doesn't this example code look a bit fiddly for a basic datepicker? <https://ellie-app.com/3t4W6N4Trm3a1> (in particular the update function)
2019-04-03T07:57:51.321600
Nana
elmlang
general
the problem with UI components in elm is that if it holds state (ie in this case, DatePicker) then you will always have to route it’s Msg to it’s update and store it’s state in yours for _every_._single_._UI_._component_
2019-04-03T08:02:07.322900
Ruthann
elmlang
general
custom elements is an option here to keep UI state local to itself in js outside of elm and only fire off msgs when the value that you care about changes
2019-04-03T08:03:00.323700
Ruthann
elmlang
general
yeah, but using custom elements just so you can store local state doesn't seem worth it
2019-04-03T08:04:41.324700
Nana
elmlang
general
i did a POC for a datepicker component and then scrapped it once i realised we had to do it for 200+ instances, same for filterable dropdowns etc
2019-04-03T08:04:51.325100
Ruthann
elmlang
general
i would define local state as user input that may or may not be valid, the state of a dropdown, the month that a datepicker is on
2019-04-03T08:05:48.325200
Ruthann
elmlang
general
these are things that your app doesn’t particularly care about but have to route through it’s update tree
2019-04-03T08:06:21.325400
Ruthann
elmlang
general
btw regarding filterable dropdowns I actually made one myself, and it doesn't require so much code to use :thinking_face:
2019-04-03T08:06:47.325600
Nana
elmlang
general
if it has a update function and state, i’d prolly not use it.. sorry, we have over 100 dropdowns in our app
2019-04-03T08:08:07.325800
Ruthann
elmlang
general
more that double of that for datetime inputs
2019-04-03T08:08:27.326000
Ruthann
elmlang
general
I wasn't suggesting you should switch to my select :stuck_out_tongue:
2019-04-03T08:09:33.326200
Nana
elmlang
general
no no, i was demonstrating the impracticality at scale for using ui components in elm
2019-04-03T08:10:26.326500
Ruthann
elmlang
general
it works if you have a handful of forms
2019-04-03T08:10:47.326700
Ruthann
elmlang
general
this is a topic that’s still frustrating us as we haven’t gone to custom elements yet and having to write quite a bit of boilerplates to make our UI work
2019-04-03T08:11:51.326900
Ruthann
elmlang
general
hmm, but if you're using custom elements everywhere, it seems like you'd kind of lose a lot of the benefit of Elm
2019-04-03T08:12:45.327200
Nana
elmlang
general
i would argue that you don’t lose much by storing user inputs locally. the benefits we have using elm is typing our business logic in case statements, this we don’t lose. typing our api connection to the backend and removing impossible state from our pages, internal data representation
2019-04-03T08:15:39.327400
Ruthann
elmlang
general
the only problem is when the local ui state goes out of sync with the elm state, how to handle all the edge cases around that. but if NRI are using it successfully for all their UI components, it gives me hope
2019-04-03T08:16:48.327600
Ruthann
elmlang
general
oh, this one seems much simpler though! <https://package.elm-lang.org/packages/NoRedInk/datetimepicker-legacy/latest>
2019-04-03T08:26:31.327800
Nana
elmlang
general
``` update msg model = case msg of DateChange datePickerState selectedDate -&gt; ( { model | selectedDate = selectedDate, datePickerState = datePickerState }, Cmd.none ) ```
2019-04-03T08:27:16.328000
Nana
elmlang
general
Yeah, I was about to suggest looking into `elm-sortable-table`, which is the pattern used by `datetimepicker-legacy` as well
2019-04-03T08:28:07.328200
Lynne
elmlang
general
and the pattern I'm using for my `select` :slightly_smiling_face:
2019-04-03T08:28:46.328400
Nana
elmlang
general
Evan had very good reasoning behind those design decision
2019-04-03T08:28:52.328600
Lynne
elmlang
general
And it should definitely help when there are hundreds of similar components, I think
2019-04-03T08:29:34.328800
Lynne
elmlang
general
Without resorting to custom elements (which I think will be a time bomb)
2019-04-03T08:29:58.329000
Lynne
elmlang
general
my only issue is that it's using elm-css :thinking_face: I'd actually prefer some nicely namespace-prefixed classes plus a .css file - easier to customize
2019-04-03T08:32:24.330100
Nana
elmlang
general
We make heavy use of the sortable table pattern across our components, and lots of use of web components (including date picker)
2019-04-03T08:32:43.330700
Simon
elmlang
general
(That pattern needs a name)...
2019-04-03T08:33:10.331200
Simon
elmlang
general
Web component for the win, here, agreed
2019-04-03T08:33:27.331700
Simon
elmlang
general
Your apps needs/size can dictate your choices here,
2019-04-03T08:34:02.332600
Simon
elmlang
general
For instance elm is fantastic but if we had to give up consumer quality date pickers from the js ecosystem that’s a huge experiential step back for our users. Web components give us a choice. I look forward to a date picker of the same caliber, we seem pretty far from it. Same for charting. All that said, surgical web components for us have not been problematic in the least, fwiw
2019-04-03T08:35:39.335400
Simon
elmlang
general
<@Simon> so what datepicker are you using that you think is better than this? <https://abadi199.github.io/datetimepicker/> I don't really see what it's missing :thinking_face:
2019-04-03T08:37:42.335700
Nana
elmlang
general
oh, I guess date ranges would be one thing :smile:
2019-04-03T08:38:02.336000
Nana
elmlang
general
One sec
2019-04-03T08:38:24.336400
Simon
elmlang
general
<https://flatpickr.js.org/>
2019-04-03T08:40:22.336700
Simon
elmlang
general
We migrated away from the one you linked
2019-04-03T08:40:56.337300
Simon
elmlang
general
<@Simon> I see :thinking_face:
2019-04-03T08:53:25.337500
Nana
elmlang
general
Can link our elm signature if interested
2019-04-03T08:55:10.338000
Simon
elmlang
general
I am curious <@Simon>
2019-04-03T08:59:43.338600
Lynne
elmlang
general
Will post after a short commute; similarly we have algolia autocomplete, and chartjs
2019-04-03T09:01:06.339700
Simon
elmlang
general
The only other thing I believe we use WC for is image fallbacks on load failure
2019-04-03T09:01:30.340500
Simon
elmlang
general
<https://gist.github.com/aaronwhite/fd7c79f34ddc07cb6864fdb13b4b32c9>
2019-04-03T09:38:02.340700
Simon
elmlang
general
Thanks!
2019-04-03T09:38:11.340900
Lynne
elmlang
general
:thumbsup:
2019-04-03T09:38:21.341100
Simon
elmlang
general
(RecordUpdaters are funcs of the form `updateProperty value record = { record | property = value }`; we use them for nicer chainability
2019-04-03T09:39:29.341300
Simon
elmlang
general
I see, thanks
2019-04-03T09:39:47.341500
Lynne
elmlang
general
<@Ruthann> have you seen my library that makes custom elements at scale OK? <https://package.elm-lang.org/packages/z5h/component-result/1.0.1/>
2019-04-03T09:44:04.341700
Leoma
elmlang
general
^^ thats a great lib
2019-04-03T09:47:55.341900
Simon
elmlang
general
ideal pattern to rally around when hosting in elm
2019-04-03T09:48:24.342100
Simon
elmlang
general
Hello everybody, just wanted to share that we have opened the channel <#CHAAB0RTP|openapi> – for those of us who use elm with openapi and/or openapi-generator. Feel free to join :slightly_smiling_face:
2019-04-03T10:35:27.343300
Odell
elmlang
general
Question: I’m in a situation on a work project where I need to use file select and then post it to a rest api. elm/file makes the selection part of this easy, and elm/http 2.0 would also make this easy, but the team has voted to keep HttpBuilder which is not compatible with 2.0. I’ve been creating a dataUrl from the file, passing it through a port and uploading, but there’s a limit on the size of the file I can do this way, both a hardcoded limit in some browsers and a practical limit because doing this with a 50mb file (which some of these files are) is somewhat unwieldy. Anyone have thoughts on how I could pass file data or a blob through a port? Am I missing something?
2019-04-03T11:14:27.349000
Cammy
elmlang
general
My personal vote would be to write something that gives you the httpbuilder API, for elm/[email protected]. Over time, you'll run into more cases where the dependency of [email protected] becomes a blocking issue - libraries you wish to use, new elm version, ...
2019-04-03T11:19:11.350600
Huong
elmlang
general
Yeah, I suggested that and even began work on it but was overruled.
2019-04-03T11:20:35.351200
Cammy
elmlang
general
Just trying to swtich a large project to 0.19. We were victims of the compiler bug and thus are using the patched version from <@Donella>. But even with that I’m getting a huge number of ``` Error: Compiler process exited with error Compilation failed elm: not enough bytes CallStack (from HasCallStack): error, called at libraries/binary/src/Data/Binary.hs:212:21 in binary-0.8.5.1:Data.Binary ```
2019-04-03T11:38:14.352700
Lynn
elmlang
general
This happens if you have several elm builds occurring simultaneously (IDE + webpack + ... for example). This could help: <https://discourse.elm-lang.org/t/working-around-not-enough-bytes-problems/3359> Also it is likely that the next release will include some lock by default.
2019-04-03T11:42:27.352900
Velia
elmlang
general
thanks a lot
2019-04-03T11:44:35.353200
Lynn
elmlang
general
Quick thanks to everyone who helped with recommendations on elmx / zeplin a while back!
2019-04-03T15:10:13.357300
Kymberly
elmlang
general
I have `sysconfcpus -n 1` around eeeeeverything related to elm
2019-04-03T15:27:38.357400
Florencia
elmlang
general
when this happens I also usually stop the tools and `rm -rf elm-stuff` and then try again
2019-04-03T15:27:56.357600
Florencia
elmlang
general
Is there a list online of the local meetups that exist?
2019-04-03T18:16:36.358500
Marcellus
elmlang
general
i don’t know that, but I do know there are regular ones in Australia. Sydney and Melbourne: <https://www.meetup.com/Sydney-Elm-Meetup/> <https://www.meetup.com/Elm-Melbourne/>
2019-04-03T23:34:28.359100
Ruthann
elmlang
general
What's the `?` in error messages?
2019-04-04T01:48:31.360300
Kris
elmlang
general
```This `combine` call produces: ? -&gt; String ```
2019-04-04T01:48:35.360500
Kris
elmlang
general
I guess the compiler could not infer the type
2019-04-04T02:51:39.360700
Monnie
elmlang
general
And London. :slightly_smiling_face: <https://www.meetup.com/Elm-London-Meetup/>
2019-04-04T03:01:19.361100
Clarissa
elmlang
general
I want to highlight the code in div on the page and how I write elm. Who can recommend some documents?
2019-04-04T03:39:30.361600
Carrie
elmlang
general
I would have a look how the Elm package website integrates with <https://highlightjs.org>. elm-explorations/markdown explains it a bit in its Readme. <https://package.elm-lang.org/packages/elm-explorations/markdown/latest/> Also see <https://github.com/elm/package.elm-lang.org/blob/master/src/frontend/Utils/Markdown.elm> and <https://github.com/elm/package.elm-lang.org/blob/e0b7aa4282038475612722ff7a57195866f8645b/backend/ServeFile.hs#L54>
2019-04-04T04:02:15.363100
Jin
elmlang
general
Thank you very much.
2019-04-04T04:11:24.363500
Carrie
elmlang
general
Berlin <https://www.meetup.com/Elm-Berlin/>
2019-04-04T04:58:42.363800
Hoa
elmlang
general
Hi all, we're looking at using Elm for a project but need to be able to use (1) <http://deck.gl|deck.gl> (Uber's webgl-accelerated mapping framework) &amp; (2) d3 (for generating visualizations in SVG)
2019-04-04T05:09:08.365300
Fidela
elmlang
general
I have been reading a little bit about interop and I'm not really sure whether this is something that could work well for us?
2019-04-04T05:09:28.365700
Fidela
elmlang
general
what's up with the <http://deck.gl|deck.gl> website!? :grimacing: it totally tanks my computer
2019-04-04T05:12:26.365800
Nana