From 1346b9378a5803c9bfe749d904896536c94ffa06 Mon Sep 17 00:00:00 2001 From: Jack Baldry Date: Fri, 18 Aug 2023 09:45:27 +0100 Subject: [PATCH] Fix a couple spelling errors --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6f914dd..9a4c471 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ This library aims to provide a set of data types and functions that make it easy The library itself also comprises many small functions, but it's admittedly harder to maintain than code that uses it. However this asymmetry is intended because it offloads complexity from users into a central component. -## Comparation to Idiomatic Go +## Comparison to Idiomatic Go In this section we discuss how the functional APIs differ from idiomatic go function signatures and how to convert back and forth. @@ -181,7 +181,7 @@ The `Map` operation for `ReaderIOEither` is defined as: func Map[R, E, A, B any](f func(A) B) func(fa ReaderIOEither[R, E, A]) ReaderIOEither[R, E, B] ``` -and in fact the equivalent operations for all other mondas follow the same pattern, we could try to introduce a new type for `ReaderIOEither` (without a parameter) as a HKT, e.g. like so (made-up syntax, does not work in go): +and in fact the equivalent operations for all other monads follow the same pattern, we could try to introduce a new type for `ReaderIOEither` (without a parameter) as a HKT, e.g. like so (made-up syntax, does not work in go): ```go func Map[HKT, R, E, A, B any](f func(A) B) func(HKT[R, E, A]) HKT[R, E, B]