Working with Tidal state values - Tidal can count!

I guess by log you mean that you want to see the current value of i?

there is this issue about showing state:

So you could just use the following in your case:

import Control.Concurrent.MVar

import Data.Map as Map

fmap (Map.lookup "i") (readMVar $ sStateMV tidal)