summaryrefslogtreecommitdiff
path: root/lib/Postdelay/TimeSpec/Utils.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Postdelay/TimeSpec/Utils.hs')
-rw-r--r--lib/Postdelay/TimeSpec/Utils.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Postdelay/TimeSpec/Utils.hs b/lib/Postdelay/TimeSpec/Utils.hs
index e4ba732..85ac299 100644
--- a/lib/Postdelay/TimeSpec/Utils.hs
+++ b/lib/Postdelay/TimeSpec/Utils.hs
@@ -7,8 +7,10 @@ import Control.Monad
7import Control.Lens 7import Control.Lens
8 8
9import Data.Time 9import Data.Time
10import Data.Time.Lens
10import Data.Time.Zones 11import Data.Time.Zones
11 12
13import Data.Functor
12import Data.AdditiveGroup 14import Data.AdditiveGroup
13 15
14import Text.Megaparsec 16import Text.Megaparsec
@@ -30,6 +32,6 @@ signed = (<*>) (lexeme sign)
30optSigned = (<*>) (option id $ lexeme sign) 32optSigned = (<*>) (option id $ lexeme sign)
31 33
32sign :: (StringParser s m, AdditiveGroup n) => m (n -> n) 34sign :: (StringParser s m, AdditiveGroup n) => m (n -> n)
33sign = choice [ id <$ char '+' 35sign = label "sign" $ choice [ char '+' $> id
34 , negateV <$ char '-' 36 , char '-' $> negateV
35 ] 37 ]