mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 12:24:43 +03:00
mkdatespan haddock
This commit is contained in:
parent
cd68f43be3
commit
55033b6e79
@ -561,6 +561,8 @@ justdatespan rdate = do
|
|||||||
d <- smartdate
|
d <- smartdate
|
||||||
return $ spanFromSmartDate rdate d
|
return $ spanFromSmartDate rdate d
|
||||||
|
|
||||||
|
-- | Make a datespan from two valid date strings parseable by parsedate
|
||||||
|
-- (or raise an error). Eg: mkdatespan "2011/1/1" "2011/12/31".
|
||||||
mkdatespan :: String -> String -> DateSpan
|
mkdatespan :: String -> String -> DateSpan
|
||||||
mkdatespan b = DateSpan (Just $ parsedate b) . Just . parsedate
|
mkdatespan b = DateSpan (Just $ parsedate b) . Just . parsedate
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user