Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
eru
1y ago
0 comments
Save
Share
You can also use the State monad, instead of IORef.
0 comments
2 comments · 1 top-level
top
newest
oldest
kqr
1y ago
· 1 in thread
Not while printfing. That is what takes a MonadIO m => StateT s m () transformer, or at least a stack with a Writer in it.
eru
OP
1y ago
Yes, that's true.
j
/
k
navigate · click thread line to collapse