mirror of
https://github.com/facebook/duckling.git
synced 2024-11-29 09:54:49 +03:00
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:
parent
879b103ca3
commit
a91e787bb7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user