From 8b29eb0592d08f12d4bf964e5fc910730b64941d Mon Sep 17 00:00:00 2001 From: Omar Diab Date: Mon, 10 Aug 2020 11:05:07 +0900 Subject: [PATCH] Revert "docs imports" This reverts commit 603df65fc5e179a12f15080ae0e1bbb31aabf114. --- docs/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index e9376c3e2..1075b9970 100644 --- a/docs/index.md +++ b/docs/index.md @@ -73,7 +73,7 @@ const string = new t.Type( and we can use it as follows: ```ts -import { isRight } from 'fp-ts/Either' +import { isRight } from 'fp-ts/lib/Either' isRight(string.decode('a string')) // true isRight(string.decode(null)) // false @@ -83,8 +83,8 @@ More generally the result of calling `decode` can be handled using [`fold`](http ```ts import * as t from 'io-ts' -import { pipe } from 'fp-ts/pipeable' -import { fold } from 'fp-ts/Either' +import { pipe } from 'fp-ts/lib/pipeable' +import { fold } from 'fp-ts/lib/Either' // failure handler const onLeft = (errors: t.Errors): string => `${errors.length} error(s) found`