Gabriella439 / Gabriella439/Haskell-MMorph-Library

Add `readOnly`

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
53
Forks
24
PR merge metrics
No merged PRs in 30d

Description

``` haskell
readOnly :: Monad m => ReaderT s m r -> StateT s m r
readOnly readerT = StateT $ \s -> do
r <- runReaderT readerT s
return (r, s)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.