diff --git a/README.md b/README.md index 3a66021..c0dfdf0 100644 --- a/README.md +++ b/README.md @@ -114,9 +114,7 @@ In some cases like this: ```purescript aye :: Parser String Char -aye = do - char 'a' - aye +aye = char 'a' *> aye ``` we might get a compile-time *CycleInDeclaration* error which looks like this: @@ -139,9 +137,7 @@ this is to stick a in front of the parser to break the cycle. ```purescript aye :: Parser String Char -aye = defer \_ -> do - char 'a' - aye +aye = defer \_ -> char 'a' *> aye ```