Model data with its ideal form. The sooner you can get it into its ideal type, the better. The later you can turn it into a non-ideal type, the better.
Examples
elm-graphql
Custom Scalar Codecs to directly map your custom scalars into their ideal types that represent the constraints of the custom scalarPosix.Time
to a function - only turn it into an ISO 8601 String at the last secondList.sort
)Sign up to get my latest Elm posts and course notifications in your inbox.
Pure Elm content. Unsubscribe any time.