Skip to content

Commit 3a7d083

Browse files
committed
add 'drop (Prefix a) a >>= uncons = Nothing' law
1 parent ad4a76c commit 3a7d083

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Text/Parsing/Parser/String.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ instance charHasUpdatePosition :: HasUpdatePosition Char where
3838

3939
-- | This class exists to abstract over streams which support the string-like
4040
-- | operations which this modules needs.
41-
-- |
41+
-- |
4242
-- | Instances must satisfy the following laws:
43-
-- |
43+
-- | - `drop (Prefix a) a >>= uncons = Nothing`
4444
class StreamLike f c | f -> c where
4545
uncons :: f -> Maybe { head :: c, tail :: f, updatePos :: Position -> Position }
4646
drop :: Prefix f -> f -> Maybe { rest :: f, updatePos :: Position -> Position }

0 commit comments

Comments
 (0)