Derive Eq, Show for TimeIntervalType

Summary: This is always useful to have.

Reviewed By: patapizza

Differential Revision: D4864208

fbshipit-source-id: b879893
This commit is contained in:
Bartosz Nitka 2017-04-18 07:58:00 -07:00 committed by Facebook Github Bot
parent 879b103ca3
commit a91e787bb7

View File

@ -663,6 +663,7 @@ timeStartingAtTheEndOf t = TimeObject
-- | Closed if the interval between A and B should include B
-- Open if the interval should end right before B
data TimeIntervalType = Open | Closed
deriving (Eq, Show)
timeInterval :: TimeIntervalType -> TimeObject -> TimeObject -> TimeObject
timeInterval intervalType t1 t2 = TimeObject