1
1
mirror of https://github.com/sdiehl/wiwinwlh.git synced 2024-08-16 23:40:41 +03:00

recursive do: fix justOnes type and GHC link (#141)

This commit is contained in:
Chris Martin 2016-11-06 15:05:31 -08:00 committed by Stephen Diehl
parent 50389a702a
commit 6f68cbbe80

View File

@ -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
--------------