For something similar to your need, I have actually created my own SimpleDate 
type ( year, month, day, weekday) without time.
Born out of frustration after endless mapping of Result types. 

The very first SimpleDate created from a String is a Result (using 
.fromString). But after that, helper functions allow you to create new 
SimpleDates by passing in a valid SimpleDate and an offset in days, or go to 
first of week, month, year etc etc.
I used it for building a simple date picker.
If anyone is interested, I can add some basic documentation and try sharing on 
GitHub.

But off course I would welcome similar extended date methods in the core 
(preferably returning valid dates, not Results BTW).

-- 
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