-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Workday calculations -- -- Workday calculations. Please see the README.md file. @package workdays @version 0.1.0 module Workdays -- | A date. data Date Date :: !Year -> {-# UNPACK #-} !Month -> {-# UNPACK #-} !DayOfMonth -> Date [dateYear] :: Date -> !Year [dateMonth] :: Date -> {-# UNPACK #-} !Month [dateDay] :: Date -> {-# UNPACK #-} !DayOfMonth -- | A year. type Year = Integer -- | A month. type Month = Int -- | A day of month. type DayOfMonth = Int -- | Calculate the number of weekdays between two dates. -- --
-- >>> weekdays (Date 2016 01 04) (Date 2016 01 10) -- 5 ---- --
-- >>> weekdays (Date 2016 01 01) (Date 2016 12 31) -- 261 --weekdays :: Date -> Date -> Integer -- | Calculate the number of workdays between two dates. -- --
-- >>> workdays (Date 2016 01 01) (Date 2016 12 31) [] -- 261 ---- --
-- >>> workdays (Date 2016 01 01) (Date 2016 12 31) [Date 2016 01 01] -- 260 --workdays :: Date -> Date -> Set Date -> Integer instance GHC.Show.Show Workdays.Date instance GHC.Classes.Ord Workdays.Date instance GHC.Classes.Eq Workdays.Date