Re: [elm-discuss] Support for binary data

2016-10-04 Thread Gábor Varga
Another use case: I would like to add Elm support to the flatbuffers compiler. Flatbuffers let you describe your protocol in a lightweight schema description language and generate low-level DTOs and serialization logic in different languages. If Elm supported binary data we could generate flat

Re: [elm-discuss] Re: about the Keyboard API

2016-08-10 Thread Gábor Varga
I like the proposed changes to keyboard API, they would definitely make my life easier. Also, that is the level where I want to do filtering in this case: as close to the event source as possible. Since the idea is that I am not interested in a bunch of events: I do not want them to be sent to

Re: [elm-discuss] Compiler fails on port module name in sub-directory

2016-08-01 Thread Gábor Varga
piler error message. > > So, open an issue at https://github.com/elm-lang/error-message-catalog? > ​ > > 2016-08-01 11:54 GMT+02:00 Gábor Varga >: > >> I worked it out. >> I would not call it a bug, I would rather call it a very bad compiler >> error message.

Re: [elm-discuss] Compiler fails on port module name in sub-directory

2016-08-01 Thread Gábor Varga
get this worked out? I'm curious if it's an elm bug. > > On Fri, Jul 22, 2016 at 9:40 AM, Gábor Varga > wrote: > >> Hello guys, >> >> I have a pretty standard elm project: all my source files are in src and >> under src there are several sub director

[elm-discuss] Compiler fails on port module name in sub-directory

2016-07-22 Thread Gábor Varga
Hello guys, I have a pretty standard elm project: all my source files are in src and under src there are several sub directories for each feature. One of those is called Login and it has a Model/Update/View.elm files in it as well as 2 port modules: InputPorts and OutputPorts. Now I cannot name

Re: [elm-discuss] Port compiler error message

2016-07-08 Thread Gábor Varga
Yeah, that was it, I could have spoted that, thanks! On Friday, July 8, 2016 at 12:26:42 PM UTC+2, Devendra Gera wrote: > > I had run into the same thing a while ago. The error message is not > helpful at all, but I fixed it (with help from the elm Slack channel) > by changing the port signatu

[elm-discuss] Port compiler error message

2016-07-08 Thread Gábor Varga
Hello guys, Could someone make sense of this error message for me: Port `userAction` has an invalid type. 51| port userAction : UserAction -> Cmd Msg ^^^ You are saying it should be: RemoteControl.UserAction -> Platform.Cmd.Cmd RemoteControl.Msg But

Re: [elm-discuss] Support for binary data

2016-06-21 Thread Gábor Varga
This feature would come handy for me too. Our use-case is that we get some encrypted data from an MQTT broker and it might be broken up to several messages. The binary data first has to be reassembled before it can be converted to UTF8 encoded strings. On Thursday, April 7, 2016 at 1:18:17 A