Skip to content

Commit b89442b

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Text/Parsing/Parser/String.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ instance charHasUpdatePosition :: HasUpdatePosition Char where
4040
-- | operations which this modules needs.
4141
-- |
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)