From 3c58f03835186027107906c08e96be039eb6e90b Mon Sep 17 00:00:00 2001 From: James Brock Date: Fri, 11 Nov 2022 09:27:26 +0900 Subject: [PATCH] README Recursion --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 ```