Skip to content

Commit

Permalink
add 'drop (Prefix a) a >>= uncons = Nothing' law
Browse files Browse the repository at this point in the history
  • Loading branch information
safareli committed Jun 11, 2017
1 parent ad4a76c commit b89442b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Parsing/Parser/String.purs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ instance charHasUpdatePosition :: HasUpdatePosition Char where
-- | operations which this modules needs.
-- |
-- | Instances must satisfy the following laws:
-- |
-- | - `drop (Prefix a) a >>= uncons = Nothing`
class StreamLike f c | f -> c where
uncons :: f -> Maybe { head :: c, tail :: f, updatePos :: Position -> Position }
drop :: Prefix f -> f -> Maybe { rest :: f, updatePos :: Position -> Position }
Expand Down

0 comments on commit b89442b

Please sign in to comment.