Oh nice, okay. thank you.
On Saturday, July 30, 2016 at 2:43:36 PM UTC-7, Janis Voigtländer wrote:
>
> Known issue: https://github.com/elm-lang/elm-compiler/issues/635.
>
> Am Samstag, 30. Juli 2016 schrieb Austin Baltes :
>
>> Hi, I'm working on building a scatterPlot module for one of my Elm
>>
Elm has never allowed for arbitrary fields to be added to records at runtime (
it used to allow field insertion & deletion, but you still need to know the
field names at compile time )
Instead of a record, maybe you should represent your data as a dict? This has
the property you are looking for
Thanks Duane, but I don't see how your suggestion fixes my problem.
My goal is to manipulate a single string variable, call it "theJson", into
an Elm list of records so that I can operate on it as I would any other
list of records in Elm.
So far I believe this cannot be done because Elm doesn
Known issue: https://github.com/elm-lang/elm-compiler/issues/635.
Am Samstag, 30. Juli 2016 schrieb Austin Baltes :
> Hi, I'm working on building a scatterPlot module for one of my Elm
> projects.
>
> This works (assigning Sp.defaultProps into defaultProps)
> import ScatterPlot as Sp
> defaultPro
Yes, if you keep the objects in the Json.Encode.Value type, then you can
contain a tree of arbitrary JSON types all the way down.
This helped me understand the above Json.Encode.Value type a little bit
better:
$ elm repl
> import Json.Encode
> Json.Encode.string "hi"
"hi" : Json.Encode.Value
> J
On Sat, Jul 30, 2016 at 1:03 PM, 'Rupert Smith' via Elm Discuss <
elm-discuss@googlegroups.com> wrote:
> Is SVG good for interactive GUIs though?
In my experience, SVG is even better for interactive GUIs, unless you have
very dense graphic elements, or your UI is more on the unusual/experimental
Hi guys,
I have a reporting app where actions by the user generate arbitrary lists
of objects(records) coming back from a JSON store. I do not know at
compile time what the fields in the objects(records) will be. Can Elm do
this? How?
Thanks in advance!
--
You received this message becaus
Hi, I'm working on building a scatterPlot module for one of my Elm projects.
This works (assigning Sp.defaultProps into defaultProps)
import ScatterPlot as Sp
defaultProps = Sp.defaultProps
init : (Model, Cmd Msg)
init =
( Model
{ defaultProps
| series =
[ { x = 0, y = 1000
I'd say Elm is a mix of ML and Haskell (which is itself ML inspired)
ML:
: for type signatures
:: for cons
Strict evaluation
No typeclasses
(extensible) Records
Let-expressions instead of where statements
Haskell:
no mutable variables
Left to right notation for type constructors ("List a" instead
I would like Binary decoders/encoders as John Watson mentioned, as well.
- Encoding/Decoding MQTT messages (which itself might contain Protobuf
messages) [
http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718013]
- Encoding/Decoding Protobuf3 binary messages [
https://d
Is SVG good for interactive GUIs though?
On Saturday, July 30, 2016 at 4:12:37 PM UTC+1, Duane Johnson wrote:
>
> Welcome, Rupert! Elm started small and has been growing significantly in
> the last year. In its initial phase, it focused a lot on the
> graphical/canvas oriented possibilities. Man
Brilliant. When I was a student 20 years ago they made us learn ML and I
used it for all my coursework, standard ML for my undergrad thesis and
OCaml for my masters. I think I am going to like Elm a lot.
On Saturday, July 30, 2016 at 3:29:51 PM UTC+1, Janis Voigtländer wrote:
>
> Yes. Mainly thr
Welcome, Rupert! Elm started small and has been growing significantly in
the last year. In its initial phase, it focused a lot on the
graphical/canvas oriented possibilities. Many web developers gravitated
toward its innovative ideas and its javascript-community-friendly culture,
however, and Elm's
Yes. Mainly through the ML "dialect" OCaml.
> Am 30.07.2016 um 11:39 schrieb 'Rupert Smith' via Elm Discuss
> :
>
> Just looking at Elm for the first time, and have not really sunk my teeth
> into it. I notice that its syntax and type system slightly resemble ML, has
> the language ML been an
Hi,
"Elmx" is just ordinary Elm functions that happen to have exactly the same
names as HTML tags.
So, it's 100% first class, if that's what you mean...?
Those functions just take two parameters: a list of attributes and a list
of child nodes.
http://guide.elm-lang.org/architecture/user_input/
Just looking at Elm for the first time, and have not really sunk my teeth
into it. I notice that its syntax and type system slightly resemble ML, has
the language ML been an influence on Elm?
Rupert
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" gro
New to Elm, hello all. I only heard about Elm because Manning send me
emails about their MEAP books and the latest one was for 'Elm in Action'.
I noticed that quite a few Elm examples are graphical, the asteroid game,
or elm-flatris, sketch-n-sketch. Is there something about Elm that makes it
s
On Thursday, 28 July 2016 20:42:44 UTC+2, John Bugner wrote:
>
> (5) Perhaps compound unit types like "Time^2" would be supported, so a
> "Time * Time" would yield "Time^2", "Time * Float" would yield "Time", and
> "Time * Length" would yield just that: "Time * Length". ("Force" would be
> an al
18 matches
Mail list logo