runState -package:ghc-lib-parser -package:extensible-effects package:mtl-prelude

Unwrap a state monad computation as a function. (The inverse of state.)