Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
update to effect package (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Sep 29, 2023
1 parent f9670d9 commit d96f502
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 28 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-boxes-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/match": minor
---

update to effect package
4 changes: 2 additions & 2 deletions examples/bench.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Data from "@effect/data/Data"
import { pipe } from "@effect/data/Function"
import * as Match from "@effect/match"
import benny from "benny"
import * as Data from "effect/Data"
import { pipe } from "effect/Function"
import { match } from "ts-pattern"

type ABC = Data.TaggedEnum<{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}
},
"peerDependencies": {
"@effect/data": "^0.18.3"
"effect": "2.0.0-next.37"
},
"devDependencies": {
"@babel/cli": "^7.22.10",
Expand All @@ -65,7 +65,6 @@
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@effect/build-utils": "^0.1.4",
"@effect/data": "^0.18.3",
"@effect/docgen": "^0.1.4",
"@effect/eslint-plugin": "^0.1.2",
"@effect/language-service": "^0.0.21",
Expand All @@ -77,6 +76,7 @@
"babel-plugin-annotate-pure-calls": "^0.4.0",
"benny": "^3.7.1",
"concurrently": "^8.2.1",
"effect": "2.0.0-next.37",
"eslint": "^8.48.0",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-codegen": "0.17.0",
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* @since 1.0.0
*/
/* eslint-disable @typescript-eslint/no-unnecessary-type-constraint */
import type { Predicate, Refinement } from "@effect/data/Predicate"
import type { UnionToIntersection } from "@effect/data/Types"
import type { SafeRefinement } from "@effect/match/SafeRefinement"
import type { Predicate, Refinement } from "effect/Predicate"
import type { UnionToIntersection } from "effect/Types"

/**
* @since 1.0.0
Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* @since 1.0.0
*/
import type * as E from "@effect/data/Either"
import type * as O from "@effect/data/Option"
import type { Pipeable } from "@effect/data/Pipeable"
import * as Predicate from "@effect/data/Predicate"
import type { Unify } from "@effect/data/Unify"
import * as internal from "@effect/match/internal/matcher"
import type { SafeRefinement } from "@effect/match/SafeRefinement"
import type * as Types from "@effect/match/Types"
import type * as E from "effect/Either"
import type * as O from "effect/Option"
import type { Pipeable } from "effect/Pipeable"
import * as Predicate from "effect/Predicate"
import type { Unify } from "effect/Unify"

/**
* @category type ids
Expand Down
12 changes: 6 additions & 6 deletions src/internal/matcher.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as Either from "@effect/data/Either"
import { identity } from "@effect/data/Function"
import * as Option from "@effect/data/Option"
import { pipeArguments } from "@effect/data/Pipeable"
import type * as Predicate from "@effect/data/Predicate"
import type { Unify } from "@effect/data/Unify"
import type * as Match from "@effect/match"
import type { SafeRefinement } from "@effect/match/SafeRefinement"
import type * as Types from "@effect/match/Types"
import * as Either from "effect/Either"
import { identity } from "effect/Function"
import * as Option from "effect/Option"
import { pipeArguments } from "effect/Pipeable"
import type * as Predicate from "effect/Predicate"
import type { Unify } from "effect/Unify"

/** @internal */
export const TypeId: Match.MatcherTypeId = Symbol.for(
Expand Down
8 changes: 4 additions & 4 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as E from "@effect/data/Either"
import { pipe } from "@effect/data/Function"
import * as O from "@effect/data/Option"
import * as Predicate from "@effect/data/Predicate"
import * as M from "@effect/match"
import { typeEquals } from "@effect/match/test/utils/typeEquals"
import * as E from "effect/Either"
import { pipe } from "effect/Function"
import * as O from "effect/Option"
import * as Predicate from "effect/Predicate"

describe("Matcher", () => {
it("exhaustive", () => {
Expand Down

0 comments on commit d96f502

Please sign in to comment.