Skip to content

Commit 194e146

Browse files
README: Fix links (#122)
2 parents 505c225 + 18f74ca commit 194e146

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

packages/fpdart/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Example of how to read and write a local file using functional programming.
126126
### [Manage imports](./examples/managing_imports)
127127
Using `fpdart` with other libraries and noticing naming conflicts? Learn how to rename the classes that conflict with other SDK or third-party packages.
128128

129-
### [Option](./lib/src/option.dart)
129+
### [Option](./packages/fpdart/lib/src/option.dart)
130130
Used when a return value can be missing.
131131
> For example, when parsing a `String` to `int`, since not all `String`
132132
> can be converted to `int`
@@ -160,7 +160,7 @@ final flatMap = option.flatMap((a) => Option.of(a + 10));
160160
final tryCatch = Option.tryCatch(() => int.parse('invalid'));
161161
```
162162

163-
### [Either](./lib/src/either.dart)
163+
### [Either](./packages/fpdart/lib/src/either.dart)
164164
Used to handle errors (instead of `Exception`s).
165165
> `Either<L, R>`: `L` is the type of the error (for example a `String` explaining
166166
> the problem), `R` is the return type when the computation is successful
@@ -201,7 +201,7 @@ final match = right.match(
201201
final option = right.toOption();
202202
```
203203

204-
### [IO](./lib/src/io.dart)
204+
### [IO](./packages/fpdart/lib/src/io.dart)
205205
Wrapper around an **sync** function. Allows to compose synchronous functions **that never fail**.
206206

207207
```dart
@@ -221,7 +221,7 @@ final int value = io.run();
221221
final flatMap = io.flatMap((a) => IO.of(a + 10));
222222
```
223223

224-
### [Task](./lib/src/task.dart)
224+
### [Task](./packages/fpdart/lib/src/task.dart)
225225
Wrapper around an **async** function (`Future`). Allows to compose asynchronous functions **that never fail**.
226226

227227
> If you look closely, it's the same as [`IO`](#io) but for **async functions** 💡
@@ -246,16 +246,16 @@ final flatMap = task.flatMap((a) => Task.of(a + 10));
246246

247247
### Utility types
248248
These types compose together the 4 above ([`Option`](#option), [`Either`](#either), [`IO`](#io), [`Task`](#task)) to join together their functionalities:
249-
- [`IOOption`](./lib/src/io_option.dart): sync function (`IO`) that may may miss the return value (`Option`)
250-
- [`IOEither`](./lib/src/io_either.dart): sync function (`IO`) that may fail (`Either`)
251-
- [`TaskOption`](./lib/src/task_option.dart): async function (`Task`) that may miss the return value (`Option`)
252-
- [`TaskEither`](./lib/src/task_either.dart): async function (`Task`) that may fail (`Either`)
249+
- [`IOOption`](./packages/fpdart/lib/src/io_option.dart): sync function (`IO`) that may may miss the return value (`Option`)
250+
- [`IOEither`](./packages/fpdart/lib/src/io_either.dart): sync function (`IO`) that may fail (`Either`)
251+
- [`TaskOption`](./packages/fpdart/lib/src/task_option.dart): async function (`Task`) that may miss the return value (`Option`)
252+
- [`TaskEither`](./packages/fpdart/lib/src/task_either.dart): async function (`Task`) that may fail (`Either`)
253253

254254

255-
### [Reader](./lib/src/reader.dart)
255+
### [Reader](./packages/fpdart/lib/src/reader.dart)
256256
Read values from a **context** without explicitly passing the dependency between multiple nested function calls. View the [example folder for an explained usecase example](./examples/src/reader).
257257

258-
### [State](./lib/src/state.dart)
258+
### [State](./packages/fpdart/lib/src/state.dart)
259259
Used to **store**, **update**, and **extract** state in a functional way. View the [example folder for an explained usecase example](./examples/src/state).
260260

261261
### 🔗 Do notation

0 commit comments

Comments
 (0)