For functional programming buffs: the Elm UI language, maybe good fit for DAML?

I have started to learn the Elm functional UI language, which has a quite similar syntax to DAML, due to the common Haskell roots: https://elm-lang.org/.

So far I’m just enjoying that the basic concepts are familiar from DAML, but maybe at a deeper level can be made a connection so that DAML data types and functions can be re-used in Elm?

What do you think? Has any of you any experience with the DAML vs Elm combo?

1 Like

I remember discussing this with @Sofia_Faro. She is also of the opinion that Elm would be a good fit and has suggested a UI framework for DAML in that style.

I don’t doubt the elegance of such a solution, but it’s too much of a research field trip for my taste at this point, and new users already have plenty of new concepts to learn with DAML. My fear is that also trying to innovate on the UI front would be too much at once.

2 Likes

I fully agree with @bernhard here. I don’t think DAML is special when it comes to UI requirements so rather than trying to innovate here we should allow users to use whatever they’re already comfortable with and focus on DAML’s strengths. For some people that might be Elm but at this point, the React ecosystem is hard to beat so that’s currently where we focus our development efforts.

1 Like

Yes, that makes sense

I hope that @bernhardand and @cocreature 's responses don’t discourage you from writing versions of our js libraries suitable for Elm ! I think that it would be a great community contribution.

3 Likes

Yes, that’s exactly what I intend to do

4 Likes

If you do get started on code generation for Elm, let me know and I’d be happy to chip in. I’m also a fan. :grinning:

1 Like

I will when I get there, currently I’m learning the basics