Skip to content

Commit 8607014

Browse files
aestevebishabosha
andauthored
better phrasing for abstracting away Config
Co-Authored-By: Jamie Thompson <[email protected]>
1 parent cf29e82 commit 8607014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/contextual/typeclasses-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ given configDependentMonad as Monad[[Result] =>> Config => Result]
252252

253253

254254

255-
The Reader monad allows to abstract over the `Config` type, named `Ctx` in the following examples. It is therefore _parameterized_ by `Ctx`:
255+
It is likely that we would like to use this pattern with other kinds of environments than our `Config` trait. The Reader monad allows us to abstract away `Config` as a type _parameter_, named `Ctx` in the following definition:
256256

257257
```scala
258258
given readerMonad[Ctx] as Monad[[X] =>> Ctx => X] {

0 commit comments

Comments
 (0)