From 6f68cbbe8044040869e0dfb37b302331801ceaf5 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Sun, 6 Nov 2016 15:05:31 -0800 Subject: [PATCH] recursive do: fix justOnes type and GHC link (#141) --- tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial.md b/tutorial.md index bfef62f..3976083 100644 --- a/tutorial.md +++ b/tutorial.md @@ -2776,13 +2776,13 @@ of a monadic context that need to hold a reference to themselves. ```haskell {-# LANGUAGE RecursiveDo #-} -justOnes :: [Int] +justOnes :: Maybe [Int] justOnes = do rec xs <- Just (1:xs) return (map negate xs) ``` -See: [Recursive Do Notation](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/syntax-extns.html#recursive-do-notation) +See: [Recursive Do Notation](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#the-recursive-do-notation) Applicative Do --------------