Hi Simon!

As a newcomer to Elm, I too have this issue fresh in my experience, and my 
approach 
<https://github.com/gurdiga/xo.elm/blob/437b6ccf9dc8ca7d53120874b0a3d664d6fa0e2e/src/MyDate.elm>
 has 
been similar to what Witold Szczerba’s: I’ve built myself a MyDate type to 
hold all the information I need, and a few helper functions that work with 
values of that type:

type alias MyDate =
    { string : String
    , date : Maybe Date
    , validationMessage : String
    }

I think the essence of the approach is to hold user’s input separate from 
the value that we want to make out of it in the end. 🤓


-- 
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 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to