Skip to content

Commit 015de5d

Browse files
authored
Merge pull request #119 from matoruru/patch-1
Replace "void $ modify" with "modify_"
2 parents 0e473e5 + cd29b39 commit 015de5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/Example/State.purs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ module Example.State where
22

33
import Prelude
44

5-
import Control.Monad.State (State, runState, modify)
5+
import Control.Monad.State (State, runState, modify_)
66
import Data.Tuple (Tuple(..))
77
import Effect (Effect)
88
import Effect.Console (log)
99

1010
incState :: State Int Unit
11-
incState = void $ modify (_ + 1)
11+
incState = modify_ (_ + 1)
1212

1313
testState :: State Int String
1414
testState = do

0 commit comments

Comments
 (0)