mirror of
https://github.com/lexi-lambda/freer-simple.git
synced 2024-12-23 14:12:45 +03:00
Fixed one errant runState
use
This commit is contained in:
parent
dedbacec57
commit
db512cc9f5
@ -84,7 +84,7 @@ implemented in-memory in terms of 'Control.Monad.Freer.State.State'. With
|
||||
|
||||
@
|
||||
runInMemoryFileSystem :: [('FilePath', 'String')] -> 'Eff' (FileSystem ': effs) '~>' 'Eff' effs
|
||||
runInMemoryFileSystem initVfs = 'Control.Monad.Freer.State.runState' initVfs '.' fsToState where
|
||||
runInMemoryFileSystem initVfs = 'Control.Monad.Freer.State.evalState' initVfs '.' fsToState where
|
||||
fsToState :: 'Eff' (FileSystem ': effs) '~>' 'Eff' ('Control.Monad.Freer.State.State' [('FilePath', 'String')] ': effs)
|
||||
fsToState = 'reinterpret' '$' \case
|
||||
ReadFile path -> 'Control.Monad.Freer.State.get' '>>=' \\vfs -> case 'lookup' path vfs of
|
||||
|
Loading…
Reference in New Issue
Block a user