diff --git a/docs/modules/Parser.ts.md b/docs/modules/Parser.ts.md index a39f201..136fa82 100644 --- a/docs/modules/Parser.ts.md +++ b/docs/modules/Parser.ts.md @@ -298,9 +298,9 @@ export declare const lookAhead: (p: Parser) => Parser **Example** ```ts -import { run } from 'parser-ts/lib/code-frame' -import * as P from 'parser-ts/lib/Parser' -import * as S from 'parser-ts/lib/string' +import { run } from 'parser-ts/code-frame' +import * as P from 'parser-ts/Parser' +import * as S from 'parser-ts/string' const parser = S.fold([S.string('hello '), P.lookAhead(S.string('world')), S.string('wor')]) @@ -440,9 +440,9 @@ export declare const takeUntil: (predicate: Predicate) => Parser **Example** ```ts -import * as C from 'parser-ts/lib/char' -import { run } from 'parser-ts/lib/code-frame' -import * as P from 'parser-ts/lib/Parser' +import * as C from 'parser-ts/char' +import { run } from 'parser-ts/code-frame' +import * as P from 'parser-ts/Parser' const parser = P.takeUntil((c: C.Char) => c === 'w') diff --git a/src/Parser.ts b/src/Parser.ts index 573cc4b..8ae1c45 100644 --- a/src/Parser.ts +++ b/src/Parser.ts @@ -338,9 +338,9 @@ export const surroundedBy: (bound: Parser) => (p: Parser) = * Takes a `Parser` and tries to match it without consuming any input. * * @example - * import { run } from 'parser-ts/lib/code-frame' - * import * as P from 'parser-ts/lib/Parser' - * import * as S from 'parser-ts/lib/string' + * import { run } from 'parser-ts/code-frame' + * import * as P from 'parser-ts/Parser' + * import * as S from 'parser-ts/string' * * const parser = S.fold([ * S.string('hello '), @@ -364,9 +364,9 @@ export const lookAhead: (p: Parser) => Parser = p => i => * Takes a `Predicate` and continues parsing until the given `Predicate` is satisfied. * * @example - * import * as C from 'parser-ts/lib/char' - * import { run } from 'parser-ts/lib/code-frame' - * import * as P from 'parser-ts/lib/Parser' + * import * as C from 'parser-ts/char' + * import { run } from 'parser-ts/code-frame' + * import * as P from 'parser-ts/Parser' * * const parser = P.takeUntil((c: C.Char) => c === 'w') *