@@ -17,7 +17,7 @@ to the `Identity` monad.
1717rws :: forall r w s a. (r -> s -> See s a w) -> RWS r w s a
1818```
1919
20- Create an action in the ` RWS ` monad from a function which uses the
20+ Create an action in the ` RWS ` monad from a function which uses the
2121global context and state explicitly.
2222
2323#### ` runRWS `
@@ -60,116 +60,4 @@ withRWS :: forall r1 r2 w s a. (r2 -> s -> Tuple r1 s) -> RWS r1 w s a -> RWS r2
6060
6161Change the type of the context in a ` RWS ` action
6262
63- #### ` ask `
64-
65- ``` purescript
66- ask :: forall r w s m. (Applicative m, Monoid w) => RWST r w s m r
67- ```
68-
69- Get the context of a ` RWS ` action
70-
71- #### ` local `
72-
73- ``` purescript
74- local :: forall r w s m a. (r -> r) -> RWST r w s m a -> RWST r w s m a
75- ```
76-
77- Locally change the context of a ` RWS ` action.
78-
79- #### ` reader `
80-
81- ``` purescript
82- reader :: forall r w s m a. (Applicative m, Monoid w) => (r -> a) -> RWST r w s m a
83- ```
84-
85- Read a value which depends on the context in a ` RWS ` action.
86-
87- #### ` writer `
88-
89- ``` purescript
90- writer :: forall r w s m a. (Applicative m) => Tuple a w -> RWST r w s m a
91- ```
92-
93- Write to the accumulator in a ` RWS ` action
94-
95- #### ` listen `
96-
97- ``` purescript
98- listen :: forall r w s m a. (Monad m) => RWST r w s m a -> RWST r w s m (Tuple a w)
99- ```
100-
101- Execute a ` RWS ` action, and return the changes to the accumulator along with the return value
102-
103- #### ` pass `
104-
105- ``` purescript
106- pass :: forall r w s m a. (Monad m) => RWST r w s m (Tuple a (w -> w)) -> RWST r w s m a
107- ```
108-
109- Execute a ` RWS ` action and modify the accumulator
110-
111- #### ` tell `
112-
113- ``` purescript
114- tell :: forall r w s m. (Applicative m) => w -> RWST r w s m Unit
115- ```
116-
117- Append a value to the accumulator in a ` RWS ` action
118-
119- #### ` listens `
120-
121- ``` purescript
122- listens :: forall r w s m a b. (Monad m) => (w -> b) -> RWST r w s m a -> RWST r w s m (Tuple a b)
123- ```
124-
125- Execute a ` RWS ` action, and return a value which depends on the accumulator along with the return value
126-
127- #### ` censor `
128-
129- ``` purescript
130- censor :: forall r w s m a. (Monad m) => (w -> w) -> RWST r w s m a -> RWST r w s m a
131- ```
132-
133- Modify the accumulator in a ` RWS ` action
134-
135- #### ` state `
136-
137- ``` purescript
138- state :: forall r w s m a. (Applicative m, Monoid w) => (s -> Tuple a s) -> RWST r w s m a
139- ```
140-
141- Get or modify the state in a ` RWS ` action
142-
143- #### ` get `
144-
145- ``` purescript
146- get :: forall r w s m. (Applicative m, Monoid w) => RWST r w s m s
147- ```
148-
149- Get the state in a ` RWS ` action
150-
151- #### ` gets `
152-
153- ``` purescript
154- gets :: forall r w s m a. (Applicative m, Monoid w) => (s -> a) -> RWST r w s m a
155- ```
156-
157- Get a value which depends on the state in a ` RWS ` action
158-
159- #### ` put `
160-
161- ``` purescript
162- put :: forall r w s m. (Applicative m, Monoid w) => s -> RWST r w s m Unit
163- ```
164-
165- Set the state in a ` RWS ` action
166-
167- #### ` modify `
168-
169- ``` purescript
170- modify :: forall r w s m. (Applicative m, Monoid w) => (s -> s) -> RWST r w s m Unit
171- ```
172-
173- Modify the state in a ` RWS ` action
174-
17563
0 commit comments