Hello folks,
Evan, Richard and the whole community as well as Elm language itself do a
great job in teaching community. If you are staying with this community for
a long time, you probably already can notice some improvements in your
understanding of programming, API design, abstractions
2016-10-04 2:22 GMT+02:00 Wil C :
> It says to visit http://guide.elm-lang.org/effect_managers/
>
In the next release of the compiler it will correctly tell you to visit
https://guide.elm-lang.org/interop/javascript.html instead.
--
You received this message because you are
Looks like a good package, thanks for contributing!
My feedback is, rather than have functions with many arguments that you
have to name in the docs, why not take a record instead? You can even
provide a default.
prettyFloat
Hi all,
How do you pass back more than one argument in a receive port call? It says
to visit http://guide.elm-lang.org/effect_managers/, but there's nothing
there on the topic. I tried something like this:
Port `parseFailure` has an invalid type.
10| port parseFailure : (String -> Int ->
Hi
I just published my first Elm package (enetsee/typed-format) and would be
very grateful for some feedback especially around documentation.
The package provides a type and combinators for a kind of type-safe
‘sprintf’ and uses the same technique as @evancz s ‘url-parser’.
As I said, all
In your `Animate animMsg` area, you're not returning the cmds, which is how
the msg is fired :).
Change your code to this:
Animate animMsg ->
let
(newStyle, cmds) =
Animation.Messenger.update
animMsg
model.storyTextStyle
in
( { model
On the elm blog post that was posted recently:
http://elm-lang.org/blog/blazing-fast-html-round-two
The benchmark linked at:
https://evancz.github.io/react-angular-ember-elm-performance-comparison/
I've repeatedly had results like this in Chrome:
@DuaneJohnson. I believe the compiler currently looks for ports and makes
decoders for them. Then when you call a particular port or sub, the decoder
is called under the covers. Something similar could happen for a
Json.Decode.auto method, which could infer the type based on the tagger
In a chat app I built, I'm using a combination of twitters widget.js and
ports to allow people to embed tweets into the chat log. This is
accomplished by having elm create a dom node with a specific ID, and then
telling widget.js to turn that into a tweet.
In local testing with a few users at
You can also do it via pure CSS via the 'transition' property, just have
the old fade out at like 1s time and the new fade in starting at the 1s
time (or 1.001s to prevent a flicker in some browsers) while flipping
display:none at the 1s mark (or just deleting it then entirely). A method
I
Unless someone says otherwise that does sound like a bug and should be
reported. I've always thought it was case sensitive as I use linux and
even on Windows it yells at me with such a warning if not a precise match
(although that might be cygwin'isms).
On Saturday, October 1, 2016 at
As a comparison, this is how OCaml handles the same issue. OCaml uses
built namespaces, meaning you can only use what was defined before you
first of all, and if you want something to be able to refer to itself or
something later on then you need to mark it explicitly
```
let v = v + 1
```
Hi,
I need to put some validation checks on a form, things like
if not (model.password1 == model.password2) then
Textfield.error <| "Passwords do not match."
but I will also need to re-use those checks to enable/disable the submit
button.
So I am thinking pull them out into functions:
Greetings everyone!
I am new to Elm and currently working on a small project using Font Awesome
icons. I moved those icons to a separate library and coaxed elm-package
into publishing it. The idea is to wrap the icons in an opaque Icon class.
To insert it in your view use toHtml : Icon -> Html
Hi,
http://package.elm-lang.org/packages/elm-lang/core/4.0.5/Process looks
really interesting but perhaps I don't fully understand it's intention.
The docs say:
So even though JS runs within a single OS-level thread, Elm can still run
> things concurrently
but when I look at the code, it
hello
sorry my simple question
NoOp ->
model ! []
what does ![] mean in the above code?
regards
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
Hi Spencer, In an Elm app I am building I ran into similar challenges.
The principles which work well for me in model design:
- Flat is better than nested (for relational stuff, such as your courses)
- One source of truth = a normalized model without duplication of data
- Connect data
NoRedInk codebase is closer to the approach described in
http://elm-lang.org/blog/how-to-use-elm-at-work
The Elm components are integrated in a larger app.
I think they have something like 50k LOC of Elm so that approach scales
quite nicely.
As for scaling TEA in an app that has 100+ routes, the
There have been some attempts. Apparently NoRedInk has a large
elm-application in production. But as this is not an opensource-project
(afaik), we cannot learn from the source code.
For me, as a beginner in Elm, it's difficult to see how TEA (the elm
architecture) can scale *nicely* into an
19 matches
Mail list logo