Skip to content

a monad transformer to add mutable variables via managed use of unsafePerformIO

Notifications You must be signed in to change notification settings

alrunner4/idris-stt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

package stt

Extending base's ST with IOArrays

The Control.Monad.STT.ST type is otherwise the same as base's Control.Monad.ST.ST, but rather than sequencing only operations on single-valued STRefs, package stt provides STTRef and STTArray for safe sequencing of conceptually-pure computations with IORef and IOArray.

The STT Monad Transformer

Since ST is a conceptually pure monad, we can extend other monads with mutable state just like we can with the traditional pure Control.Monad.State.StateT with the new interface Control.Monad.STT.MonadSTT and its canonical transformer Control.Monad.STT.STT.

About

a monad transformer to add mutable variables via managed use of unsafePerformIO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages