Skip to content

Commit

Permalink
add build in ES6 format
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Jan 9, 2020
1 parent 6f18b64 commit 3122727
Show file tree
Hide file tree
Showing 26 changed files with 752 additions and 295 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.log
node_modules
lib
es6
dev
coverage
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"printWidth": 120
}
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"typescript.tsdk": "./node_modules/typescript/lib",
"prettier.printWidth": 120
"typescript.tsdk": "./node_modules/typescript/lib"
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
**Note**: Gaps between patch versions are faulty/broken releases. **Note**: A feature tagged as Experimental is in a
high state of flux, you're at risk of it changing without notice.

# 0.6.1

- **New Feature**
- add build in ES6 format (@gcanti)

# 0.6.0

- **Breaking Change**
Expand Down
4 changes: 4 additions & 0 deletions docs/modules/ParseResult.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ nav_order: 5
parent: Modules
---

# ParseResult overview

Added in v0.6.0

---

<h2 class="text-delta">Table of contents</h2>
Expand Down
94 changes: 93 additions & 1 deletion docs/modules/Parser.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ nav_order: 4
parent: Modules
---

# Parser overview

Added in v0.6.0

---

<h2 class="text-delta">Table of contents</h2>
Expand Down Expand Up @@ -31,6 +35,14 @@ parent: Modules
- [seq (function)](#seq-function)
- [succeed (function)](#succeed-function)
- [withStart (function)](#withstart-function)
- [alt (export)](#alt-export)
- [ap (export)](#ap-export)
- [apFirst (export)](#apfirst-export)
- [apSecond (export)](#apsecond-export)
- [chain (export)](#chain-export)
- [chainFirst (export)](#chainfirst-export)
- [flatten (export)](#flatten-export)
- [map (export)](#map-export)

---

Expand Down Expand Up @@ -61,7 +73,7 @@ Added in v0.6.0
**Signature**
```ts
export const URI = ...
export const URI: "Parser" = ...
```

Added in v0.6.0
Expand Down Expand Up @@ -347,3 +359,83 @@ export function withStart<I, A>(p: Parser<I, A>): Parser<I, [A, Stream<I>]> { ..
```

Added in v0.6.0

# alt (export)

**Signature**

```ts
<E, A>(that: () => Parser<E, A>) => (fa: Parser<E, A>) => Parser<E, A>
```

Added in v0.6.0

# ap (export)

**Signature**

```ts
<E, A>(fa: Parser<E, A>) => <B>(fab: Parser<E, (a: A) => B>) => Parser<E, B>
```

Added in v0.6.0

# apFirst (export)

**Signature**

```ts
<E, B>(fb: Parser<E, B>) => <A>(fa: Parser<E, A>) => Parser<E, A>
```

Added in v0.6.0

# apSecond (export)

**Signature**

```ts
<e, B>(fb: Parser<e, B>) => <A>(fa: Parser<e, A>) => Parser<e, B>
```

Added in v0.6.0

# chain (export)

**Signature**

```ts
<E, A, B>(f: (a: A) => Parser<E, B>) => (ma: Parser<E, A>) => Parser<E, B>
```

Added in v0.6.0

# chainFirst (export)

**Signature**

```ts
<E, A, B>(f: (a: A) => Parser<E, B>) => (ma: Parser<E, A>) => Parser<E, A>
```

Added in v0.6.0

# flatten (export)

**Signature**

```ts
<E, A>(mma: Parser<E, Parser<E, A>>) => Parser<E, A>
```

Added in v0.6.0

# map (export)

**Signature**

```ts
<A, B>(f: (a: A) => B) => <E>(fa: Parser<E, A>) => Parser<E, B>
```

Added in v0.6.0
4 changes: 4 additions & 0 deletions docs/modules/Stream.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ nav_order: 6
parent: Modules
---

# Stream overview

Added in v0.6.0

---

<h2 class="text-delta">Table of contents</h2>
Expand Down
6 changes: 5 additions & 1 deletion docs/modules/char.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ nav_order: 1
parent: Modules
---

# char overview

Added in v0.6.0

---

<h2 class="text-delta">Table of contents</h2>
Expand Down Expand Up @@ -71,7 +75,7 @@ Matches a single ASCII letter.
**Signature**

```ts
export const letter = ...
export const letter: P.Parser<string, string> = ...
```

Added in v0.6.0
Expand Down
4 changes: 4 additions & 0 deletions docs/modules/code-frame.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ nav_order: 2
parent: Modules
---

# code-frame overview

Added in v0.6.0

---

<h2 class="text-delta">Table of contents</h2>
Expand Down
24 changes: 19 additions & 5 deletions docs/modules/index.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ nav_order: 3
parent: Modules
---

# index overview

Added in v0.6.0

---

<h2 class="text-delta">Table of contents</h2>
Expand All @@ -21,37 +25,47 @@ parent: Modules
**Signature**

```ts
export { char }
typeof char
```

Added in v0.6.0

# parseResult (export)

**Signature**

```ts
export { parseResult }
typeof parseResult
```

Added in v0.6.0

# parser (export)

**Signature**

```ts
export { parser }
typeof parser
```

Added in v0.6.0

# stream (export)

**Signature**

```ts
export { stream }
typeof stream
```

Added in v0.6.0

# string (export)

**Signature**

```ts
export { string }
typeof string
```

Added in v0.6.0
8 changes: 6 additions & 2 deletions docs/modules/string.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ nav_order: 7
parent: Modules
---

# string overview

Added in v0.6.0

---

<h2 class="text-delta">Table of contents</h2>
Expand Down Expand Up @@ -33,7 +37,7 @@ of string escaping.
**Signature**

```ts
export const doubleQuotedString = ...
export const doubleQuotedString: P.Parser<string, string> = ...
```

Added in v0.6.0
Expand All @@ -53,7 +57,7 @@ Added in v0.6.0
**Signature**

```ts
export const fold: <I>(as: P.Parser<I, string>[]) => P.Parser<I, string> = ...
export const fold: <I>(as: Array<P.Parser<I, string>>) => P.Parser<I, string> = ...
```

Added in v0.6.0
Expand Down
Loading

0 comments on commit 3122727

Please sign in to comment.