Comparing version 0.2.0 to 0.2.1
@@ -15,2 +15,7 @@ # Changelog | ||
# 0.2.1 | ||
- **Internal** | ||
- upgrade to latest `fp-ts` (0.4.3) (@gcanti) | ||
# 0.2.0 | ||
@@ -17,0 +22,0 @@ |
@@ -8,2 +8,7 @@ import { Monoid } from 'fp-ts/lib/Monoid'; | ||
import { Option } from 'fp-ts/lib/Option'; | ||
declare module 'fp-ts/lib/HKT' { | ||
interface URI2HKT<A> { | ||
Parser: Parser<A>; | ||
} | ||
} | ||
export declare const URI = "Parser"; | ||
@@ -124,29 +129,1 @@ export declare type URI = typeof URI; | ||
export declare const parser: Monad<URI> & Alternative<URI> & Monoid<Parser<string>>; | ||
import { Curried2, Curried3, Curried4 } from 'fp-ts/lib/function'; | ||
declare module 'fp-ts/lib/Functor' { | ||
interface Ops { | ||
lift<A, B>(functor: Functor<URI>, f: (a: A) => B): (fa: Parser<A>) => Parser<B>; | ||
voidRight<A, B>(functor: Functor<URI>, a: A, fb: Parser<B>): Parser<A>; | ||
voidLeft<A, B>(functor: Functor<URI>, fa: Parser<A>, b: B): Parser<B>; | ||
flap(functor: Functor<URI>): <A, B>(ff: Parser<(a: A) => B>, a: A) => Parser<B>; | ||
} | ||
} | ||
declare module 'fp-ts/lib/Apply' { | ||
interface Ops { | ||
applyFirst(apply: Apply<URI>): <A, B>(fa: Parser<A>, fb: Parser<B>) => Parser<A>; | ||
applySecond(apply: Apply<URI>): <A, B>(fa: Parser<A>, fb: Parser<B>) => Parser<B>; | ||
liftA2<A, B, C>(apply: Apply<URI>, f: Curried2<A, B, C>): (fa: Parser<A>, fb: Parser<B>) => Parser<C>; | ||
liftA3<A, B, C, D>(apply: Apply<URI>, f: Curried3<A, B, C, D>): (fa: Parser<A>, fb: Parser<B>, fc: Parser<C>) => Parser<D>; | ||
liftA4<A, B, C, D, E>(apply: Apply<URI>, f: Curried4<A, B, C, D, E>): (fa: Parser<A>, fb: Parser<B>, fc: Parser<C>, fd: Parser<D>) => Parser<E>; | ||
} | ||
} | ||
declare module 'fp-ts/lib/Applicative' { | ||
interface Ops { | ||
when(applicative: Applicative<URI>): (condition: boolean, fu: Parser<void>) => Parser<void>; | ||
} | ||
} | ||
declare module 'fp-ts/lib/Chain' { | ||
interface Ops { | ||
flatten(chain: Chain<URI>): <A>(mma: Parser<Parser<A>>) => Parser<A>; | ||
} | ||
} |
@@ -48,6 +48,6 @@ "use strict"; | ||
}; | ||
Parser.of = of; | ||
Parser.zero = zero; | ||
return Parser; | ||
}()); | ||
Parser.of = of; | ||
Parser.zero = zero; | ||
exports.Parser = Parser; | ||
@@ -54,0 +54,0 @@ function map(f, fa) { |
{ | ||
"name": "parser-ts", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "String parser combinators for TypeScript", | ||
@@ -28,3 +28,3 @@ "files": ["lib"], | ||
"dependencies": { | ||
"fp-ts": "^0.4.0" | ||
"fp-ts": "^0.4.1" | ||
}, | ||
@@ -36,6 +36,6 @@ "devDependencies": { | ||
"prettier": "1.5.2", | ||
"ts-node": "3.2.0", | ||
"tslint": "4.4.2", | ||
"tslint-config-standard": "4.0.0", | ||
"ts-node": "^3.2.0", | ||
"typescript": "2.3.3", | ||
"typescript": "2.4.2", | ||
"typings-checker": "1.1.2" | ||
@@ -42,0 +42,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42637
624
Updatedfp-ts@^0.4.1