Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Data/Attoparsec/Combinator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ skipTill p end = scan
skipTill' :: (MonadPlus m) => m a -> m b -> m b
skipTill' p end = scan
where scan = end `mplus` (p !*> scan)
(!*>) !a0 a1 = a0 *> a1
(!*>) a0 a1 = fmap (\(!a) -> a) a0 *> a1

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bgamari This should do it, right?

{-# SPECIALIZE skipTill' :: Parser ByteString a -> Parser ByteString b
-> Parser ByteString b #-}
{-# SPECIALIZE skipTill' :: Parser Text a -> Parser Text b -> Parser Text b #-}
Expand Down