mirror of
https://github.com/sdiehl/wiwinwlh.git
synced 2024-10-26 20:57:32 +03:00
Merge branch 'master' of github.com:sdiehl/wiwinwlh
This commit is contained in:
commit
d7539465ad
@ -2779,13 +2779,13 @@ of a monadic context that need to hold a reference to themselves.
|
|||||||
```haskell
|
```haskell
|
||||||
{-# LANGUAGE RecursiveDo #-}
|
{-# LANGUAGE RecursiveDo #-}
|
||||||
|
|
||||||
justOnes :: [Int]
|
justOnes :: Maybe [Int]
|
||||||
justOnes = do
|
justOnes = do
|
||||||
rec xs <- Just (1:xs)
|
rec xs <- Just (1:xs)
|
||||||
return (map negate 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
|
Applicative Do
|
||||||
--------------
|
--------------
|
||||||
|
Loading…
Reference in New Issue
Block a user