Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Chapter 11.4 The State Monad - type mismatch in example #132

Open
crcdng opened this issue Apr 2, 2018 · 0 comments
Open

Chapter 11.4 The State Monad - type mismatch in example #132

crcdng opened this issue Apr 2, 2018 · 0 comments

Comments

@crcdng
Copy link

crcdng commented Apr 2, 2018

> :paste
… execState (do
…   sumArray [1, 2, 3]
…   sumArray [4, 5]
…   sumArray [6]) 0
… ^D
21

sumArray takes Array Number, the array values here are of type Int

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant