Skip to content

Commit b4632b6

Browse files
authored
Merge pull request #17 from mkantor/externalize-adts
Externalize ADTs
2 parents ca0da58 + 39022fa commit b4632b6

Some content is hidden

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

47 files changed

+102
-212
lines changed

package-lock.json

Lines changed: 32 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"typescript": "^5.6.2"
2020
},
2121
"dependencies": {
22+
"@matt.kantor/either": "^1.0.0",
23+
"@matt.kantor/option": "^1.0.0",
2224
"kleur": "^4.1.5"
2325
}
2426
}

src/adts.ts

Lines changed: 0 additions & 9 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/adts/option-utilities.ts

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

src/adts/option.ts

Lines changed: 0 additions & 33 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'

0 commit comments

Comments
 (0)