From b5893d68ce4eacbc3ae431ca48f821657236c7aa Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 14 Jan 2022 19:10:49 +0530 Subject: refactor: refactors imports + formatting --- src/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts index 6c19fd3..5bcb4f9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ -import { getOrElseW, map } from 'fp-ts/lib/Either' -import { flow, pipe } from 'fp-ts/lib/function' -import { fst } from 'fp-ts/lib/Tuple' +import * as Either from 'fp-ts/Either' +import { flow, pipe } from 'fp-ts/function' +import { fst } from 'fp-ts/Tuple' import * as ev from './eval' import { parser } from './parser' import { ListExpr } from './types' @@ -11,8 +11,8 @@ const toSourceString = (r: string | RegExp): string => export const liexp: (r: string | RegExp) => ListExpr = flow( toSourceString, parser, - map(fst), - getOrElseW(([e, _]) => { + Either.map(fst), + Either.getOrElseW(([e, _]) => { throw new Error(e) }), ) -- cgit v1.3.1