How To Create Elm Record Model — Tentamen Software Testing Blog

Karlo Smid
1 min readAug 28, 2020
Elm Record Model

TL;DR

In the previous post, we learned Elm Record Type, an Elm implementation of key/value data pairs. Elm Record Type is a basic block for creating Elm Record Model. This post is part of the functional language series, and it is based on a remarkable book Programming Elm Build Safe and Maintainable Front-End Applications by Jeremy Fairbank.

Elm Record Model

Elm Record Model handles Elm application data. As our PicShare application is about displaying and commenting pictures, we will create a Record Model for photos. We created Elm Record type annotation initialModel and one Record instance of that model that represents one instance of a picture in our Picshare application.

Recompile Picshare application and we are ready to create View for our Picshare application.

Originally published at https://blog.tentamen.eu on August 28, 2020.

--

--