Hacker News new | ask | show | jobs
by dottedmag 3671 days ago
Flagged like "State T" in function type, which Haskell has had since ~1995?
2 comments

Or IO, or ST, or STM, or any other number of Haskell features that Roboprog has correctly predicted to exist.
Performance-wise, StateT is not an escape-hatch. It can be great for removing boilerplate, but it's simply another way of writing (s -> (a, s)).

IO, ST, and STM mentioned by tome better match the description of "escape hatch" - though for ST and STM they are very carefully shaped escape hatches.