diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index f8454714e..dbe4fe095 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -1,6 +1,6 @@
/* eslint-disable no-undef */
module.exports = {
- ignorePatterns: ["dist", "build", "*.mjs", "docs", "*.md"],
+ ignorePatterns: ["dist", "build", "docs", "*.mjs", "*.md"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2018,
diff --git a/.gitignore b/.gitignore
index d6ac700d4..bf5473fd1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,5 +5,5 @@ node_modules/
tmp/
dist/
build/
-docs/examples/
+docs/
.direnv/
diff --git a/docs/_config.yml b/docs/_config.yml
deleted file mode 100644
index 1d30cabfe..000000000
--- a/docs/_config.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-remote_theme: mikearnaldi/just-the-docs
-search_enabled: true
-aux_links:
- "Docs":
- - "//effect-ts.github.io/effect"
- "API Reference":
- - "//effect-ts.github.io/effect/docs/modules"
- "GitHub":
- - "//github.com/effect-ts/effect"
diff --git a/docs/index.md b/docs/index.md
deleted file mode 100644
index d77a44118..000000000
--- a/docs/index.md
+++ /dev/null
@@ -1,4 +0,0 @@
----
-title: Home
-nav_order: 1
----
diff --git a/docs/modules/BigDecimal.ts.md b/docs/modules/BigDecimal.ts.md
deleted file mode 100644
index 684fa92a6..000000000
--- a/docs/modules/BigDecimal.ts.md
+++ /dev/null
@@ -1,898 +0,0 @@
----
-title: BigDecimal.ts
-nav_order: 1
-parent: Modules
----
-
-## BigDecimal overview
-
-This module provides utility functions and type class instances for working with the `BigDecimal` type in TypeScript.
-It includes functions for basic arithmetic operations, as well as type class instances for `Equivalence` and `Order`.
-
-A `BigDecimal` allows storing any real number to arbitrary precision; which avoids common floating point errors
-(such as 0.1 + 0.2 ≠ 0.3) at the cost of complexity.
-
-Internally, `BigDecimal` uses a `BigInt` object, paired with a 64-bit integer which determines the position of the
-decimal point. Therefore, the precision _is not_ actually arbitrary, but limited to 263 decimal places.
-
-It is not recommended to convert a floating point number to a decimal directly, as the floating point representation
-may be unexpected.
-
-Added in v2.0.0
-
----
-
-
Table of contents
-
-- [constructors](#constructors)
- - [fromBigInt](#frombigint)
- - [fromNumber](#fromnumber)
- - [fromString](#fromstring)
- - [make](#make)
- - [unsafeFromString](#unsafefromstring)
-- [conversions](#conversions)
- - [toString](#tostring)
- - [unsafeToNumber](#unsafetonumber)
-- [guards](#guards)
- - [isBigDecimal](#isbigdecimal)
-- [instances](#instances)
- - [Equivalence](#equivalence)
- - [Order](#order)
-- [math](#math)
- - [abs](#abs)
- - [clamp](#clamp)
- - [divide](#divide)
- - [max](#max)
- - [min](#min)
- - [multiply](#multiply)
- - [negate](#negate)
- - [remainder](#remainder)
- - [sign](#sign)
- - [subtract](#subtract)
- - [sum](#sum)
- - [unsafeDivide](#unsafedivide)
- - [unsafeRemainder](#unsaferemainder)
-- [models](#models)
- - [BigDecimal (interface)](#bigdecimal-interface)
-- [predicates](#predicates)
- - [between](#between)
- - [equals](#equals)
- - [greaterThan](#greaterthan)
- - [greaterThanOrEqualTo](#greaterthanorequalto)
- - [isInteger](#isinteger)
- - [isNegative](#isnegative)
- - [isPositive](#ispositive)
- - [isZero](#iszero)
- - [lessThan](#lessthan)
- - [lessThanOrEqualTo](#lessthanorequalto)
-- [scaling](#scaling)
- - [normalize](#normalize)
- - [scale](#scale)
-- [symbol](#symbol)
- - [TypeId (type alias)](#typeid-type-alias)
-- [symbols](#symbols)
- - [TypeId](#typeid)
-
----
-
-# constructors
-
-## fromBigInt
-
-Creates a `BigDecimal` from a `bigint` value.
-
-**Signature**
-
-```ts
-export declare const fromBigInt: (n: bigint) => BigDecimal
-```
-
-Added in v2.0.0
-
-## fromNumber
-
-Creates a `BigDecimal` from a `number` value.
-
-It is not recommended to convert a floating point number to a decimal directly,
-as the floating point representation may be unexpected.
-
-**Signature**
-
-```ts
-export declare const fromNumber: (n: number) => BigDecimal
-```
-
-**Example**
-
-```ts
-import { fromNumber, make } from "effect/BigDecimal"
-
-assert.deepStrictEqual(fromNumber(123), make(123n, 0))
-assert.deepStrictEqual(fromNumber(123.456), make(123456n, 3))
-```
-
-Added in v2.0.0
-
-## fromString
-
-Parses a numerical `string` into a `BigDecimal`.
-
-**Signature**
-
-```ts
-export declare const fromString: (s: string) => Option.Option
-```
-
-**Example**
-
-```ts
-import { fromString, make } from "effect/BigDecimal"
-import { some, none } from "effect/Option"
-
-assert.deepStrictEqual(fromString("123"), some(make(123n, 0)))
-assert.deepStrictEqual(fromString("123.456"), some(make(123456n, 3)))
-assert.deepStrictEqual(fromString("123.abc"), none())
-```
-
-Added in v2.0.0
-
-## make
-
-Creates a `BigDecimal` from a `bigint` value and a scale.
-
-**Signature**
-
-```ts
-export declare const make: (value: bigint, scale: number) => BigDecimal
-```
-
-Added in v2.0.0
-
-## unsafeFromString
-
-Parses a numerical `string` into a `BigDecimal`.
-
-**Signature**
-
-```ts
-export declare const unsafeFromString: (s: string) => BigDecimal
-```
-
-**Example**
-
-```ts
-import { unsafeFromString, make } from "effect/BigDecimal"
-
-assert.deepStrictEqual(unsafeFromString("123"), make(123n, 0))
-assert.deepStrictEqual(unsafeFromString("123.456"), make(123456n, 3))
-assert.throws(() => unsafeFromString("123.abc"))
-```
-
-Added in v2.0.0
-
-# conversions
-
-## toString
-
-Formats a given `BigDecimal` as a `string`.
-
-**Signature**
-
-```ts
-export declare const toString: (n: BigDecimal) => string
-```
-
-**Example**
-
-```ts
-import { toString, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(toString(unsafeFromString("-5")), "-5")
-assert.deepStrictEqual(toString(unsafeFromString("123.456")), "123.456")
-assert.deepStrictEqual(toString(unsafeFromString("-0.00000123")), "-0.00000123")
-```
-
-Added in v2.0.0
-
-## unsafeToNumber
-
-Converts a `BigDecimal` to a `number`.
-
-This function will produce incorrect results if the `BigDecimal` exceeds the 64-bit range of a `number`.
-
-**Signature**
-
-```ts
-export declare const unsafeToNumber: (n: BigDecimal) => number
-```
-
-**Example**
-
-```ts
-import { unsafeToNumber, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(unsafeToNumber(unsafeFromString("123.456")), 123.456)
-```
-
-Added in v2.0.0
-
-# guards
-
-## isBigDecimal
-
-Checks if a given value is a `BigDecimal`.
-
-**Signature**
-
-```ts
-export declare const isBigDecimal: (u: unknown) => u is BigDecimal
-```
-
-Added in v2.0.0
-
-# instances
-
-## Equivalence
-
-**Signature**
-
-```ts
-export declare const Equivalence: equivalence.Equivalence
-```
-
-Added in v2.0.0
-
-## Order
-
-**Signature**
-
-```ts
-export declare const Order: order.Order
-```
-
-Added in v2.0.0
-
-# math
-
-## abs
-
-Determines the absolute value of a given `BigDecimal`.
-
-**Signature**
-
-```ts
-export declare const abs: (n: BigDecimal) => BigDecimal
-```
-
-**Example**
-
-```ts
-import { abs, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(abs(unsafeFromString("-5")), unsafeFromString("5"))
-assert.deepStrictEqual(abs(unsafeFromString("0")), unsafeFromString("0"))
-assert.deepStrictEqual(abs(unsafeFromString("5")), unsafeFromString("5"))
-```
-
-Added in v2.0.0
-
-## clamp
-
-Restricts the given `BigDecimal` to be within the range specified by the `minimum` and `maximum` values.
-
-- If the `BigDecimal` is less than the `minimum` value, the function returns the `minimum` value.
-- If the `BigDecimal` is greater than the `maximum` value, the function returns the `maximum` value.
-- Otherwise, it returns the original `BigDecimal`.
-
-**Signature**
-
-```ts
-export declare const clamp: {
- (options: { minimum: BigDecimal; maximum: BigDecimal }): (self: BigDecimal) => BigDecimal
- (self: BigDecimal, options: { minimum: BigDecimal; maximum: BigDecimal }): BigDecimal
-}
-```
-
-**Example**
-
-```ts
-import * as BigDecimal from "effect/BigDecimal"
-
-const clamp = BigDecimal.clamp({
- minimum: BigDecimal.unsafeFromString("1"),
- maximum: BigDecimal.unsafeFromString("5")
-})
-
-assert.deepStrictEqual(clamp(BigDecimal.unsafeFromString("3")), BigDecimal.unsafeFromString("3"))
-assert.deepStrictEqual(clamp(BigDecimal.unsafeFromString("0")), BigDecimal.unsafeFromString("1"))
-assert.deepStrictEqual(clamp(BigDecimal.unsafeFromString("6")), BigDecimal.unsafeFromString("5"))
-```
-
-Added in v2.0.0
-
-## divide
-
-Provides a division operation on `BigDecimal`s.
-
-If the dividend is not a multiple of the divisor the result will be a `BigDecimal` value
-which represents the integer division rounded down to the nearest integer.
-
-If the divisor is `0`, the result will be `None`.
-
-**Signature**
-
-```ts
-export declare const divide: {
- (that: BigDecimal): (self: BigDecimal) => Option.Option
- (self: BigDecimal, that: BigDecimal): Option.Option
-}
-```
-
-**Example**
-
-```ts
-import { divide, unsafeFromString } from "effect/BigDecimal"
-import { some, none } from "effect/Option"
-
-assert.deepStrictEqual(divide(unsafeFromString("6"), unsafeFromString("3")), some(unsafeFromString("2")))
-assert.deepStrictEqual(divide(unsafeFromString("6"), unsafeFromString("4")), some(unsafeFromString("1.5")))
-assert.deepStrictEqual(divide(unsafeFromString("6"), unsafeFromString("0")), none())
-```
-
-Added in v2.0.0
-
-## max
-
-Returns the maximum between two `BigDecimal`s.
-
-**Signature**
-
-```ts
-export declare const max: {
- (that: BigDecimal): (self: BigDecimal) => BigDecimal
- (self: BigDecimal, that: BigDecimal): BigDecimal
-}
-```
-
-**Example**
-
-```ts
-import { max, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(max(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("3"))
-```
-
-Added in v2.0.0
-
-## min
-
-Returns the minimum between two `BigDecimal`s.
-
-**Signature**
-
-```ts
-export declare const min: {
- (that: BigDecimal): (self: BigDecimal) => BigDecimal
- (self: BigDecimal, that: BigDecimal): BigDecimal
-}
-```
-
-**Example**
-
-```ts
-import { min, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(min(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("2"))
-```
-
-Added in v2.0.0
-
-## multiply
-
-Provides a multiplication operation on `BigDecimal`s.
-
-**Signature**
-
-```ts
-export declare const multiply: {
- (that: BigDecimal): (self: BigDecimal) => BigDecimal
- (self: BigDecimal, that: BigDecimal): BigDecimal
-}
-```
-
-**Example**
-
-```ts
-import { multiply, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(multiply(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("6"))
-```
-
-Added in v2.0.0
-
-## negate
-
-Provides a negate operation on `BigDecimal`s.
-
-**Signature**
-
-```ts
-export declare const negate: (n: BigDecimal) => BigDecimal
-```
-
-**Example**
-
-```ts
-import { negate, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(negate(unsafeFromString("3")), unsafeFromString("-3"))
-assert.deepStrictEqual(negate(unsafeFromString("-6")), unsafeFromString("6"))
-```
-
-Added in v2.0.0
-
-## remainder
-
-Returns the remainder left over when one operand is divided by a second operand.
-
-If the divisor is `0`, the result will be `None`.
-
-**Signature**
-
-```ts
-export declare const remainder: {
- (divisor: BigDecimal): (self: BigDecimal) => Option.Option
- (self: BigDecimal, divisor: BigDecimal): Option.Option
-}
-```
-
-**Example**
-
-```ts
-import { remainder, unsafeFromString } from "effect/BigDecimal"
-import { some } from "effect/Option"
-
-assert.deepStrictEqual(remainder(unsafeFromString("2"), unsafeFromString("2")), some(unsafeFromString("0")))
-assert.deepStrictEqual(remainder(unsafeFromString("3"), unsafeFromString("2")), some(unsafeFromString("1")))
-assert.deepStrictEqual(remainder(unsafeFromString("-4"), unsafeFromString("2")), some(unsafeFromString("0")))
-```
-
-Added in v2.0.0
-
-## sign
-
-Determines the sign of a given `BigDecimal`.
-
-**Signature**
-
-```ts
-export declare const sign: (n: BigDecimal) => Ordering
-```
-
-**Example**
-
-```ts
-import { sign, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(sign(unsafeFromString("-5")), -1)
-assert.deepStrictEqual(sign(unsafeFromString("0")), 0)
-assert.deepStrictEqual(sign(unsafeFromString("5")), 1)
-```
-
-Added in v2.0.0
-
-## subtract
-
-Provides a subtraction operation on `BigDecimal`s.
-
-**Signature**
-
-```ts
-export declare const subtract: {
- (that: BigDecimal): (self: BigDecimal) => BigDecimal
- (self: BigDecimal, that: BigDecimal): BigDecimal
-}
-```
-
-**Example**
-
-```ts
-import { subtract, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(subtract(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("-1"))
-```
-
-Added in v2.0.0
-
-## sum
-
-Provides an addition operation on `BigDecimal`s.
-
-**Signature**
-
-```ts
-export declare const sum: {
- (that: BigDecimal): (self: BigDecimal) => BigDecimal
- (self: BigDecimal, that: BigDecimal): BigDecimal
-}
-```
-
-**Example**
-
-```ts
-import { sum, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(sum(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("5"))
-```
-
-Added in v2.0.0
-
-## unsafeDivide
-
-Provides an unsafe division operation on `BigDecimal`s.
-
-If the dividend is not a multiple of the divisor the result will be a `BigDecimal` value
-which represents the integer division rounded down to the nearest integer.
-
-Throws a `RangeError` if the divisor is `0`.
-
-**Signature**
-
-```ts
-export declare const unsafeDivide: {
- (that: BigDecimal): (self: BigDecimal) => BigDecimal
- (self: BigDecimal, that: BigDecimal): BigDecimal
-}
-```
-
-**Example**
-
-```ts
-import { unsafeDivide, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(unsafeDivide(unsafeFromString("6"), unsafeFromString("3")), unsafeFromString("2"))
-assert.deepStrictEqual(unsafeDivide(unsafeFromString("6"), unsafeFromString("4")), unsafeFromString("1.5"))
-```
-
-Added in v2.0.0
-
-## unsafeRemainder
-
-Returns the remainder left over when one operand is divided by a second operand.
-
-Throws a `RangeError` if the divisor is `0`.
-
-**Signature**
-
-```ts
-export declare const unsafeRemainder: {
- (divisor: BigDecimal): (self: BigDecimal) => BigDecimal
- (self: BigDecimal, divisor: BigDecimal): BigDecimal
-}
-```
-
-**Example**
-
-```ts
-import { unsafeRemainder, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(unsafeRemainder(unsafeFromString("2"), unsafeFromString("2")), unsafeFromString("0"))
-assert.deepStrictEqual(unsafeRemainder(unsafeFromString("3"), unsafeFromString("2")), unsafeFromString("1"))
-assert.deepStrictEqual(unsafeRemainder(unsafeFromString("-4"), unsafeFromString("2")), unsafeFromString("0"))
-```
-
-Added in v2.0.0
-
-# models
-
-## BigDecimal (interface)
-
-**Signature**
-
-```ts
-export interface BigDecimal extends Equal.Equal, Pipeable, Inspectable {
- readonly [TypeId]: TypeId
- readonly value: bigint
- readonly scale: number
- /** @internal */
- normalized?: BigDecimal
-}
-```
-
-Added in v2.0.0
-
-# predicates
-
-## between
-
-Checks if a `BigDecimal` is between a `minimum` and `maximum` value (inclusive).
-
-**Signature**
-
-```ts
-export declare const between: {
- (options: { minimum: BigDecimal; maximum: BigDecimal }): (self: BigDecimal) => boolean
- (self: BigDecimal, options: { minimum: BigDecimal; maximum: BigDecimal }): boolean
-}
-```
-
-**Example**
-
-```ts
-import * as BigDecimal from "effect/BigDecimal"
-
-const between = BigDecimal.between({
- minimum: BigDecimal.unsafeFromString("1"),
- maximum: BigDecimal.unsafeFromString("5")
-})
-
-assert.deepStrictEqual(between(BigDecimal.unsafeFromString("3")), true)
-assert.deepStrictEqual(between(BigDecimal.unsafeFromString("0")), false)
-assert.deepStrictEqual(between(BigDecimal.unsafeFromString("6")), false)
-```
-
-Added in v2.0.0
-
-## equals
-
-Checks if two `BigDecimal`s are equal.
-
-**Signature**
-
-```ts
-export declare const equals: {
- (that: BigDecimal): (self: BigDecimal) => boolean
- (self: BigDecimal, that: BigDecimal): boolean
-}
-```
-
-Added in v2.0.0
-
-## greaterThan
-
-Returns `true` if the first argument is greater than the second, otherwise `false`.
-
-**Signature**
-
-```ts
-export declare const greaterThan: {
- (that: BigDecimal): (self: BigDecimal) => boolean
- (self: BigDecimal, that: BigDecimal): boolean
-}
-```
-
-**Example**
-
-```ts
-import { greaterThan, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(greaterThan(unsafeFromString("2"), unsafeFromString("3")), false)
-assert.deepStrictEqual(greaterThan(unsafeFromString("3"), unsafeFromString("3")), false)
-assert.deepStrictEqual(greaterThan(unsafeFromString("4"), unsafeFromString("3")), true)
-```
-
-Added in v2.0.0
-
-## greaterThanOrEqualTo
-
-Checks if a given `BigDecimal` is greater than or equal to the provided one.
-
-**Signature**
-
-```ts
-export declare const greaterThanOrEqualTo: {
- (that: BigDecimal): (self: BigDecimal) => boolean
- (self: BigDecimal, that: BigDecimal): boolean
-}
-```
-
-**Example**
-
-```ts
-import { greaterThanOrEqualTo, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(greaterThanOrEqualTo(unsafeFromString("2"), unsafeFromString("3")), false)
-assert.deepStrictEqual(greaterThanOrEqualTo(unsafeFromString("3"), unsafeFromString("3")), true)
-assert.deepStrictEqual(greaterThanOrEqualTo(unsafeFromString("4"), unsafeFromString("3")), true)
-```
-
-Added in v2.0.0
-
-## isInteger
-
-Checks if a given `BigDecimal` is an integer.
-
-**Signature**
-
-```ts
-export declare const isInteger: (n: BigDecimal) => boolean
-```
-
-**Example**
-
-```ts
-import { isInteger, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(isInteger(unsafeFromString("0")), true)
-assert.deepStrictEqual(isInteger(unsafeFromString("1")), true)
-assert.deepStrictEqual(isInteger(unsafeFromString("1.1")), false)
-```
-
-Added in v2.0.0
-
-## isNegative
-
-Checks if a given `BigDecimal` is negative.
-
-**Signature**
-
-```ts
-export declare const isNegative: (n: BigDecimal) => boolean
-```
-
-**Example**
-
-```ts
-import { isNegative, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(isNegative(unsafeFromString("-1")), true)
-assert.deepStrictEqual(isNegative(unsafeFromString("0")), false)
-assert.deepStrictEqual(isNegative(unsafeFromString("1")), false)
-```
-
-Added in v2.0.0
-
-## isPositive
-
-Checks if a given `BigDecimal` is positive.
-
-**Signature**
-
-```ts
-export declare const isPositive: (n: BigDecimal) => boolean
-```
-
-**Example**
-
-```ts
-import { isPositive, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(isPositive(unsafeFromString("-1")), false)
-assert.deepStrictEqual(isPositive(unsafeFromString("0")), false)
-assert.deepStrictEqual(isPositive(unsafeFromString("1")), true)
-```
-
-Added in v2.0.0
-
-## isZero
-
-Checks if a given `BigDecimal` is `0`.
-
-**Signature**
-
-```ts
-export declare const isZero: (n: BigDecimal) => boolean
-```
-
-**Example**
-
-```ts
-import { isZero, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(isZero(unsafeFromString("0")), true)
-assert.deepStrictEqual(isZero(unsafeFromString("1")), false)
-```
-
-Added in v2.0.0
-
-## lessThan
-
-Returns `true` if the first argument is less than the second, otherwise `false`.
-
-**Signature**
-
-```ts
-export declare const lessThan: {
- (that: BigDecimal): (self: BigDecimal) => boolean
- (self: BigDecimal, that: BigDecimal): boolean
-}
-```
-
-**Example**
-
-```ts
-import { lessThan, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(lessThan(unsafeFromString("2"), unsafeFromString("3")), true)
-assert.deepStrictEqual(lessThan(unsafeFromString("3"), unsafeFromString("3")), false)
-assert.deepStrictEqual(lessThan(unsafeFromString("4"), unsafeFromString("3")), false)
-```
-
-Added in v2.0.0
-
-## lessThanOrEqualTo
-
-Checks if a given `BigDecimal` is less than or equal to the provided one.
-
-**Signature**
-
-```ts
-export declare const lessThanOrEqualTo: {
- (that: BigDecimal): (self: BigDecimal) => boolean
- (self: BigDecimal, that: BigDecimal): boolean
-}
-```
-
-**Example**
-
-```ts
-import { lessThanOrEqualTo, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(lessThanOrEqualTo(unsafeFromString("2"), unsafeFromString("3")), true)
-assert.deepStrictEqual(lessThanOrEqualTo(unsafeFromString("3"), unsafeFromString("3")), true)
-assert.deepStrictEqual(lessThanOrEqualTo(unsafeFromString("4"), unsafeFromString("3")), false)
-```
-
-Added in v2.0.0
-
-# scaling
-
-## normalize
-
-Normalizes a given `BigDecimal` by removing trailing zeros.
-
-**Signature**
-
-```ts
-export declare const normalize: (self: BigDecimal) => BigDecimal
-```
-
-**Example**
-
-```ts
-import { normalize, make, unsafeFromString } from "effect/BigDecimal"
-
-assert.deepStrictEqual(normalize(unsafeFromString("123.00000")), make(123n, 0))
-assert.deepStrictEqual(normalize(unsafeFromString("12300000")), make(123n, -5))
-```
-
-Added in v2.0.0
-
-## scale
-
-Scales a given `BigDecimal` to the specified scale.
-
-If the given scale is smaller than the current scale, the value will be rounded down to
-the nearest integer.
-
-**Signature**
-
-```ts
-export declare const scale: (self: BigDecimal, scale: number) => BigDecimal
-```
-
-Added in v2.0.0
-
-# symbol
-
-## TypeId (type alias)
-
-**Signature**
-
-```ts
-export type TypeId = typeof TypeId
-```
-
-Added in v2.0.0
-
-# symbols
-
-## TypeId
-
-**Signature**
-
-```ts
-export declare const TypeId: typeof TypeId
-```
-
-Added in v2.0.0
diff --git a/docs/modules/BigInt.ts.md b/docs/modules/BigInt.ts.md
deleted file mode 100644
index 799a67ba8..000000000
--- a/docs/modules/BigInt.ts.md
+++ /dev/null
@@ -1,624 +0,0 @@
----
-title: BigInt.ts
-nav_order: 2
-parent: Modules
----
-
-## BigInt overview
-
-This module provides utility functions and type class instances for working with the `bigint` type in TypeScript.
-It includes functions for basic arithmetic operations, as well as type class instances for
-`Equivalence` and `Order`.
-
-Added in v2.0.0
-
----
-
-
Table of contents
-
-- [guards](#guards)
- - [isBigInt](#isbigint)
-- [instances](#instances)
- - [Equivalence](#equivalence)
- - [Order](#order)
-- [math](#math)
- - [abs](#abs)
- - [decrement](#decrement)
- - [divide](#divide)
- - [gcd](#gcd)
- - [increment](#increment)
- - [lcm](#lcm)
- - [multiply](#multiply)
- - [multiplyAll](#multiplyall)
- - [sign](#sign)
- - [sqrt](#sqrt)
- - [subtract](#subtract)
- - [sum](#sum)
- - [sumAll](#sumall)
- - [unsafeDivide](#unsafedivide)
- - [unsafeSqrt](#unsafesqrt)
-- [predicates](#predicates)
- - [between](#between)
- - [greaterThan](#greaterthan)
- - [greaterThanOrEqualTo](#greaterthanorequalto)
- - [lessThan](#lessthan)
- - [lessThanOrEqualTo](#lessthanorequalto)
-- [utils](#utils)
- - [clamp](#clamp)
- - [max](#max)
- - [min](#min)
-
----
-
-# guards
-
-## isBigInt
-
-Tests if a value is a `bigint`.
-
-**Signature**
-
-```ts
-export declare const isBigInt: (u: unknown) => u is bigint
-```
-
-**Example**
-
-```ts
-import { isBigInt } from "effect/BigInt"
-
-assert.deepStrictEqual(isBigInt(1n), true)
-assert.deepStrictEqual(isBigInt(1), false)
-```
-
-Added in v2.0.0
-
-# instances
-
-## Equivalence
-
-**Signature**
-
-```ts
-export declare const Equivalence: equivalence.Equivalence
-```
-
-Added in v2.0.0
-
-## Order
-
-**Signature**
-
-```ts
-export declare const Order: order.Order
-```
-
-Added in v2.0.0
-
-# math
-
-## abs
-
-Determines the absolute value of a given `bigint`.
-
-**Signature**
-
-```ts
-export declare const abs: (n: bigint) => bigint
-```
-
-**Example**
-
-```ts
-import { abs } from "effect/BigInt"
-
-assert.deepStrictEqual(abs(-5n), 5n)
-assert.deepStrictEqual(abs(0n), 0n)
-assert.deepStrictEqual(abs(5n), 5n)
-```
-
-Added in v2.0.0
-
-## decrement
-
-Decrements a number by `1n`.
-
-**Signature**
-
-```ts
-export declare const decrement: (n: bigint) => bigint
-```
-
-**Example**
-
-```ts
-import { decrement } from "effect/BigInt"
-
-assert.deepStrictEqual(decrement(3n), 2n)
-```
-
-Added in v2.0.0
-
-## divide
-
-Provides a division operation on `bigint`s.
-
-If the dividend is not a multiple of the divisor the result will be a `bigint` value
-which represents the integer division rounded down to the nearest integer.
-
-Returns `None` if the divisor is `0n`.
-
-**Signature**
-
-```ts
-export declare const divide: {
- (that: bigint): (self: bigint) => Option.Option
- (self: bigint, that: bigint): Option.Option
-}
-```
-
-**Example**
-
-```ts
-import { divide } from "effect/BigInt"
-import { some, none } from "effect/Option"
-
-assert.deepStrictEqual(divide(6n, 3n), some(2n))
-assert.deepStrictEqual(divide(6n, 0n), none())
-```
-
-Added in v2.0.0
-
-## gcd
-
-Determines the greatest common divisor of two `bigint`s.
-
-**Signature**
-
-```ts
-export declare const gcd: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint }
-```
-
-**Example**
-
-```ts
-import { gcd } from "effect/BigInt"
-
-assert.deepStrictEqual(gcd(2n, 3n), 1n)
-assert.deepStrictEqual(gcd(2n, 4n), 2n)
-assert.deepStrictEqual(gcd(16n, 24n), 8n)
-```
-
-Added in v2.0.0
-
-## increment
-
-Returns the result of adding `1n` to a given number.
-
-**Signature**
-
-```ts
-export declare const increment: (n: bigint) => bigint
-```
-
-**Example**
-
-```ts
-import { increment } from "effect/BigInt"
-
-assert.deepStrictEqual(increment(2n), 3n)
-```
-
-Added in v2.0.0
-
-## lcm
-
-Determines the least common multiple of two `bigint`s.
-
-**Signature**
-
-```ts
-export declare const lcm: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint }
-```
-
-**Example**
-
-```ts
-import { lcm } from "effect/BigInt"
-
-assert.deepStrictEqual(lcm(2n, 3n), 6n)
-assert.deepStrictEqual(lcm(2n, 4n), 4n)
-assert.deepStrictEqual(lcm(16n, 24n), 48n)
-```
-
-Added in v2.0.0
-
-## multiply
-
-Provides a multiplication operation on `bigint`s.
-
-**Signature**
-
-```ts
-export declare const multiply: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint }
-```
-
-**Example**
-
-```ts
-import { multiply } from "effect/BigInt"
-
-assert.deepStrictEqual(multiply(2n, 3n), 6n)
-```
-
-Added in v2.0.0
-
-## multiplyAll
-
-Takes an `Iterable` of `bigint`s and returns their multiplication as a single `number`.
-
-**Signature**
-
-```ts
-export declare const multiplyAll: (collection: Iterable) => bigint
-```
-
-**Example**
-
-```ts
-import { multiplyAll } from "effect/BigInt"
-
-assert.deepStrictEqual(multiplyAll([2n, 3n, 4n]), 24n)
-```
-
-Added in v2.0.0
-
-## sign
-
-Determines the sign of a given `bigint`.
-
-**Signature**
-
-```ts
-export declare const sign: (n: bigint) => Ordering
-```
-
-**Example**
-
-```ts
-import { sign } from "effect/BigInt"
-
-assert.deepStrictEqual(sign(-5n), -1)
-assert.deepStrictEqual(sign(0n), 0)
-assert.deepStrictEqual(sign(5n), 1)
-```
-
-Added in v2.0.0
-
-## sqrt
-
-Determines the square root of a given `bigint` safely. Returns `none` if the given `bigint` is negative.
-
-**Signature**
-
-```ts
-export declare const sqrt: (n: bigint) => Option.Option
-```
-
-**Example**
-
-```ts
-import { sqrt } from "effect/BigInt"
-import * as Option from "effect/Option"
-
-assert.deepStrictEqual(sqrt(4n), Option.some(2n))
-assert.deepStrictEqual(sqrt(9n), Option.some(3n))
-assert.deepStrictEqual(sqrt(16n), Option.some(4n))
-assert.deepStrictEqual(sqrt(-1n), Option.none())
-```
-
-Added in v2.0.0
-
-## subtract
-
-Provides a subtraction operation on `bigint`s.
-
-**Signature**
-
-```ts
-export declare const subtract: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint }
-```
-
-**Example**
-
-```ts
-import { subtract } from "effect/BigInt"
-
-assert.deepStrictEqual(subtract(2n, 3n), -1n)
-```
-
-Added in v2.0.0
-
-## sum
-
-Provides an addition operation on `bigint`s.
-
-**Signature**
-
-```ts
-export declare const sum: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint }
-```
-
-**Example**
-
-```ts
-import { sum } from "effect/BigInt"
-
-assert.deepStrictEqual(sum(2n, 3n), 5n)
-```
-
-Added in v2.0.0
-
-## sumAll
-
-Takes an `Iterable` of `bigint`s and returns their sum as a single `bigint
-
-**Signature**
-
-```ts
-export declare const sumAll: (collection: Iterable) => bigint
-```
-
-**Example**
-
-```ts
-import { sumAll } from "effect/BigInt"
-
-assert.deepStrictEqual(sumAll([2n, 3n, 4n]), 9n)
-```
-
-Added in v2.0.0
-
-## unsafeDivide
-
-Provides a division operation on `bigint`s.
-
-If the dividend is not a multiple of the divisor the result will be a `bigint` value
-which represents the integer division rounded down to the nearest integer.
-
-Throws a `RangeError` if the divisor is `0n`.
-
-**Signature**
-
-```ts
-export declare const unsafeDivide: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint }
-```
-
-**Example**
-
-```ts
-import { unsafeDivide } from "effect/BigInt"
-
-assert.deepStrictEqual(unsafeDivide(6n, 3n), 2n)
-assert.deepStrictEqual(unsafeDivide(6n, 4n), 1n)
-```
-
-Added in v2.0.0
-
-## unsafeSqrt
-
-Determines the square root of a given `bigint` unsafely. Throws if the given `bigint` is negative.
-
-**Signature**
-
-```ts
-export declare const unsafeSqrt: (n: bigint) => bigint
-```
-
-**Example**
-
-```ts
-import { unsafeSqrt } from "effect/BigInt"
-
-assert.deepStrictEqual(unsafeSqrt(4n), 2n)
-assert.deepStrictEqual(unsafeSqrt(9n), 3n)
-assert.deepStrictEqual(unsafeSqrt(16n), 4n)
-```
-
-Added in v2.0.0
-
-# predicates
-
-## between
-
-Checks if a `bigint` is between a `minimum` and `maximum` value (inclusive).
-
-**Signature**
-
-```ts
-export declare const between: {
- (options: { minimum: bigint; maximum: bigint }): (self: bigint) => boolean
- (self: bigint, options: { minimum: bigint; maximum: bigint }): boolean
-}
-```
-
-**Example**
-
-```ts
-import * as BigInt from "effect/BigInt"
-
-const between = BigInt.between({ minimum: 0n, maximum: 5n })
-
-assert.deepStrictEqual(between(3n), true)
-assert.deepStrictEqual(between(-1n), false)
-assert.deepStrictEqual(between(6n), false)
-```
-
-Added in v2.0.0
-
-## greaterThan
-
-Returns `true` if the first argument is greater than the second, otherwise `false`.
-
-**Signature**
-
-```ts
-export declare const greaterThan: { (that: bigint): (self: bigint) => boolean; (self: bigint, that: bigint): boolean }
-```
-
-**Example**
-
-```ts
-import { greaterThan } from "effect/BigInt"
-
-assert.deepStrictEqual(greaterThan(2n, 3n), false)
-assert.deepStrictEqual(greaterThan(3n, 3n), false)
-assert.deepStrictEqual(greaterThan(4n, 3n), true)
-```
-
-Added in v2.0.0
-
-## greaterThanOrEqualTo
-
-Returns a function that checks if a given `bigint` is greater than or equal to the provided one.
-
-**Signature**
-
-```ts
-export declare const greaterThanOrEqualTo: {
- (that: bigint): (self: bigint) => boolean
- (self: bigint, that: bigint): boolean
-}
-```
-
-**Example**
-
-```ts
-import { greaterThanOrEqualTo } from "effect/BigInt"
-
-assert.deepStrictEqual(greaterThanOrEqualTo(2n, 3n), false)
-assert.deepStrictEqual(greaterThanOrEqualTo(3n, 3n), true)
-assert.deepStrictEqual(greaterThanOrEqualTo(4n, 3n), true)
-```
-
-Added in v2.0.0
-
-## lessThan
-
-Returns `true` if the first argument is less than the second, otherwise `false`.
-
-**Signature**
-
-```ts
-export declare const lessThan: { (that: bigint): (self: bigint) => boolean; (self: bigint, that: bigint): boolean }
-```
-
-**Example**
-
-```ts
-import { lessThan } from "effect/BigInt"
-
-assert.deepStrictEqual(lessThan(2n, 3n), true)
-assert.deepStrictEqual(lessThan(3n, 3n), false)
-assert.deepStrictEqual(lessThan(4n, 3n), false)
-```
-
-Added in v2.0.0
-
-## lessThanOrEqualTo
-
-Returns a function that checks if a given `bigint` is less than or equal to the provided one.
-
-**Signature**
-
-```ts
-export declare const lessThanOrEqualTo: {
- (that: bigint): (self: bigint) => boolean
- (self: bigint, that: bigint): boolean
-}
-```
-
-**Example**
-
-```ts
-import { lessThanOrEqualTo } from "effect/BigInt"
-
-assert.deepStrictEqual(lessThanOrEqualTo(2n, 3n), true)
-assert.deepStrictEqual(lessThanOrEqualTo(3n, 3n), true)
-assert.deepStrictEqual(lessThanOrEqualTo(4n, 3n), false)
-```
-
-Added in v2.0.0
-
-# utils
-
-## clamp
-
-Restricts the given `bigint` to be within the range specified by the `minimum` and `maximum` values.
-
-- If the `bigint` is less than the `minimum` value, the function returns the `minimum` value.
-- If the `bigint` is greater than the `maximum` value, the function returns the `maximum` value.
-- Otherwise, it returns the original `bigint`.
-
-**Signature**
-
-```ts
-export declare const clamp: {
- (options: { minimum: bigint; maximum: bigint }): (self: bigint) => bigint
- (self: bigint, options: { minimum: bigint; maximum: bigint }): bigint
-}
-```
-
-**Example**
-
-```ts
-import * as BigInt from "effect/BigInt"
-
-const clamp = BigInt.clamp({ minimum: 1n, maximum: 5n })
-
-assert.equal(clamp(3n), 3n)
-assert.equal(clamp(0n), 1n)
-assert.equal(clamp(6n), 5n)
-```
-
-Added in v2.0.0
-
-## max
-
-Returns the maximum between two `bigint`s.
-
-**Signature**
-
-```ts
-export declare const max: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint }
-```
-
-**Example**
-
-```ts
-import { max } from "effect/BigInt"
-
-assert.deepStrictEqual(max(2n, 3n), 3n)
-```
-
-Added in v2.0.0
-
-## min
-
-Returns the minimum between two `bigint`s.
-
-**Signature**
-
-```ts
-export declare const min: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint }
-```
-
-**Example**
-
-```ts
-import { min } from "effect/BigInt"
-
-assert.deepStrictEqual(min(2n, 3n), 2n)
-```
-
-Added in v2.0.0
diff --git a/docs/modules/Boolean.ts.md b/docs/modules/Boolean.ts.md
deleted file mode 100644
index 43901b767..000000000
--- a/docs/modules/Boolean.ts.md
+++ /dev/null
@@ -1,338 +0,0 @@
----
-title: Boolean.ts
-nav_order: 3
-parent: Modules
----
-
-## Boolean overview
-
-This module provides utility functions and type class instances for working with the `boolean` type in TypeScript.
-It includes functions for basic boolean operations, as well as type class instances for
-`Equivalence` and `Order`.
-
-Added in v2.0.0
-
----
-
-