module Data.HodaTime.CalendarDateTime
(
CalendarDateTime
,IsCalendar(..)
,HasDate(..)
,on
,at
,atStartOfDay
)
where
import Data.HodaTime.CalendarDateTime.Internal
import Data.HodaTime.LocalTime.Internal (midnight)
on :: LocalTime -> CalendarDate cal -> CalendarDateTime cal
on :: forall cal. LocalTime -> CalendarDate cal -> CalendarDateTime cal
on = (CalendarDate cal -> LocalTime -> CalendarDateTime cal)
-> LocalTime -> CalendarDate cal -> CalendarDateTime cal
forall a b c. (a -> b -> c) -> b -> a -> c
flip CalendarDate cal -> LocalTime -> CalendarDateTime cal
forall calendar.
CalendarDate calendar -> LocalTime -> CalendarDateTime calendar
CalendarDateTime
atStartOfDay :: CalendarDate cal -> CalendarDateTime cal
atStartOfDay :: forall cal. CalendarDate cal -> CalendarDateTime cal
atStartOfDay = (CalendarDate cal -> LocalTime -> CalendarDateTime cal)
-> LocalTime -> CalendarDate cal -> CalendarDateTime cal
forall a b c. (a -> b -> c) -> b -> a -> c
flip CalendarDate cal -> LocalTime -> CalendarDateTime cal
forall calendar.
CalendarDate calendar -> LocalTime -> CalendarDateTime calendar
at LocalTime
midnight