We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78c1544 commit ae79529Copy full SHA for ae79529
src/Data/Date.purs
@@ -90,8 +90,8 @@ weekday = unsafePartial \(Date y m d) ->
90
in if n == 0 then fromJust (toEnum 7) else fromJust (toEnum n)
91
92
-- | Adjusts a date with a Duration in days. The number of days must
93
--- | fall within the valid range for an `Int` type otherwise `Nothing`
94
--- | is returned.
+-- | already be an integer and fall within the valid range of values
+-- | for the Int type.
95
adjust :: Days -> Date -> Maybe Date
96
adjust (Days n) date = fromNumber n >>= flip adj date
97
where
0 commit comments