I feel quite dumb, but I can not find a way to add a Duration (Data.Interval.Duration) to an Instant (Data.DateTime.Instant).
What I am looking for is a function with a signature looking something like this:
add :: Duration -> Instant -> Instant
The closer match I could find is ‘adjust’ (Data.DateTime), but its signature is:
adjust :: forall d. Duration d => d -> DateTime -> Maybe DateTime
This looked great until I realised that the Duration type (Data.Interval.Duration) has nothing to do with the Duration class (Data.DateTime).
What am I doing wrong here?