HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulefs-sim-0.5.0.1Haskell2010

System.FS.Sim.Prim

Mocked, monad transformer-based implementation of the HasFS interface.

  • 1 type
  • 2 values
  • Packagefs-sim-0.5.0.1
  • Exports3
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourcePrim.hs
newtypenewtype FSSimT (m :: Type -> Type) a
#

Monad transformer that extends a monad m with pure features: (i) MockFS state, and (ii) throwing/catching FsErrors.

Instances7MonadError, MonadState, Monad, Functor, Applicative, PrimMonad, …

Mocked, monad transformer-based implementation of the HasFS interface.

This implementation is pure when running in a monad m that is ST.

This implementation runs in a primitive monad m extended with an FSSimT monad transformer. It is recommended to use simHasFS or simErrorHasFS instead because they hide the monad transformer. The caveat is that m should be IO-like.