[Haskell-cafe] Combine `StateT` and `InputT` to maintain state on Ctrl-C interrupt

Tom Ellis tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Wed Aug 12 15:09:43 UTC 2015

On Wed, Aug 12, 2015 at 04:26:59PM +0200, haskell at stefan-klinger.de wrote:
> At first I thought I had stacked the `StateT` and `InputT` in the
> wrong order.  But changing from `InputT (StateT Int IO) ()` to `StateT
> Int (InputT IO) ()` seems not to change anything (which really gives
> me the creeps).

InputT is essentially ReaderT


so it's not surprising that the order has no effect.   Reader commutes with


More information about the Haskell-Cafe mailing list