File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -30,26 +30,31 @@ run p t = case A.parseOnly (p <* A.endOfInput) t of
30
30
-- | Parse a date of the form @[+,-]YYYY-MM-DD@.
31
31
day :: Parser Day
32
32
day = T. day
33
+ {-# INLINE day #-}
33
34
34
35
-- | Parse a time of the form @HH:MM[:SS[.SSS]]@.
35
36
timeOfDay :: Parser Local. TimeOfDay
36
37
timeOfDay = T. timeOfDay
38
+ {-# INLINE timeOfDay #-}
37
39
38
40
-- | Parse a time zone, and return 'Nothing' if the offset from UTC is
39
41
-- zero. (This makes some speedups possible.)
40
42
timeZone :: Parser (Maybe Local. TimeZone )
41
43
timeZone = T. timeZone
44
+ {-# INLINE timeZone #-}
42
45
43
46
-- | Parse a date and time, of the form @YYYY-MM-DD HH:MM[:SS[.SSS]]@.
44
47
-- The space may be replaced with a @T@. The number of seconds is optional
45
48
-- and may be followed by a fractional component.
46
49
localTime :: Parser Local. LocalTime
47
50
localTime = T. localTime
51
+ {-# INLINE localTime #-}
48
52
49
53
-- | Behaves as 'zonedTime', but converts any time zone offset into a
50
54
-- UTC time.
51
55
utcTime :: Parser UTCTime
52
56
utcTime = T. utcTime
57
+ {-# INLINE utcTime #-}
53
58
54
59
-- | Parse a date with time zone info. Acceptable formats:
55
60
--
@@ -64,3 +69,4 @@ utcTime = T.utcTime
64
69
-- (also optional) are minutes.
65
70
zonedTime :: Parser Local. ZonedTime
66
71
zonedTime = T. zonedTime
72
+ {-# INLINE zonedTime #-}
You can’t perform that action at this time.
0 commit comments