git.iko.soy/typeable/attoparsec
on master help sign in
Make pure strict in position
83c28e3Ben Gamari
Data/Attoparsec/Internal/Types.hs+1−1
@@ -180,7 +180,7 @@ apP d e = do
180{-# INLINE apP #-}
180{-# INLINE apP #-}
181
181
182instance Applicative (Parser i) where
182instance Applicative (Parser i) where
183− pure v = Parser $ \t pos more _lose succ -> succ t pos more v
183+ pure v = Parser $ \t !pos more _lose succ -> succ t pos more v
184 {-# INLINE pure #-}
184 {-# INLINE pure #-}
185 (<*>) = apP
185 (<*>) = apP
186 {-# INLINE (<*>) #-}
186 {-# INLINE (<*>) #-}