summaryrefslogtreecommitdiff
path: root/lib/Postdelay
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Postdelay')
-rw-r--r--lib/Postdelay/TimeSpec.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Postdelay/TimeSpec.hs b/lib/Postdelay/TimeSpec.hs
index 0736e80..4a32317 100644
--- a/lib/Postdelay/TimeSpec.hs
+++ b/lib/Postdelay/TimeSpec.hs
@@ -109,7 +109,7 @@ numericTimezone = review utcOffset <$> (sign <*> ((^+^) <$> hour <*> minute)) <?
109 109
110namedTimezone :: (StringParser s m, MonadIO m) => m TZ 110namedTimezone :: (StringParser s m, MonadIO m) => m TZ
111namedTimezone = do 111namedTimezone = do
112 n <- ident 112 n <- ident <?> "Named timezone identifier"
113 tz <- liftIO $ do 113 tz <- liftIO $ do
114 let 114 let
115 fbHandler :: IO a -> (IOException -> IO a) 115 fbHandler :: IO a -> (IOException -> IO a)
@@ -123,4 +123,4 @@ namedTimezone = do
123 (Just tz) -> return tz 123 (Just tz) -> return tz
124 where 124 where
125 asciiAlphaNum = oneOf $ ['0'..'9'] ++ ['a'..'z'] ++ ['A'..'Z'] 125 asciiAlphaNum = oneOf $ ['0'..'9'] ++ ['a'..'z'] ++ ['A'..'Z']
126 ident = (++) <$> some asciiAlphaNum <*> option [] ((:) <$> oneOf "_-/.+" <*> ident) <?> "Named timezone identifier" 126 ident = (++) <$> some asciiAlphaNum <*> option [] ((:) <$> oneOf "_-/.+" <*> ident)