Skip to content

Commit 39022fa

Browse files
committed
Adopt @matt.kantor/either package
1 parent 64ee2b9 commit 39022fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+57
-126
lines changed

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"typescript": "^5.6.2"
2020
},
2121
"dependencies": {
22+
"@matt.kantor/either": "^1.0.0",
2223
"@matt.kantor/option": "^1.0.0",
2324
"kleur": "^4.1.5"
2425
}

src/adts.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/adts/either-utilities.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/adts/either.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/end-to-end.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import either, { type Either } from '@matt.kantor/either'
12
import assert from 'node:assert'
2-
import { either, type Either } from './adts.js'
33
import { compile } from './language/compiling.js'
44
import type { Atom, Molecule } from './language/parsing.js'
55
import { parse } from './language/parsing/parser.js'

src/language/cli/input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import either, { type Either } from '@matt.kantor/either'
12
import { parseArgs } from 'util'
2-
import { either, type Either } from '../../adts.js'
33
import { type JsonValueForbiddingSymbolicKeys } from '../parsing.js'
44

55
export type InvalidJsonError = {

src/language/cli/output.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import either, { type Either } from '@matt.kantor/either'
12
import { parseArgs } from 'util'
2-
import { either, type Either } from '../../adts.js'
33
import { type SyntaxTree } from '../parsing/syntax-tree.js'
44
import { unparse, type Notation } from '../unparsing.js'
55
import { prettyJson } from '../unparsing/pretty-json.js'

src/language/cli/please.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { either, type Either } from '../../adts.js'
1+
import either, { type Either } from '@matt.kantor/either'
22
import { compile } from '../compiling.js'
33
import type { Atom, Molecule } from '../parsing.js'
44
import { parse } from '../parsing/parser.js'

src/language/compiling/compiler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import either, { type Either } from '@matt.kantor/either'
12
import assert from 'node:assert'
2-
import { either, type Either } from '../../adts.js'
33
import { withPhantomData } from '../../phantom-data.js'
44
import { testCases } from '../../test-utilities.test.js'
55
import type { ElaborationError } from '../errors.js'

0 commit comments

Comments
 (0)