Skip to content

Commit

Permalink
Version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Jan 19, 2020
1 parent edb6c80 commit d25f7c2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Sanctuary
Copyright (c) 2020 Sanctuary

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand Down
32 changes: 16 additions & 16 deletions README.md
Expand Up @@ -44,7 +44,7 @@ always contains exactly one value, of type `a`.
. 'Contravariant ❌ ' ]
```

#### <a name="Identity" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L121">`Identity :: a -⁠> Identity a`</a>
#### <a name="Identity" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L121">`Identity :: a -⁠> Identity a`</a>

Identity's sole data constructor. Additionally, it serves as the
Identity [type representative][].
Expand All @@ -54,7 +54,7 @@ Identity [type representative][].
Identity (42)
```

#### <a name="Identity.fantasy-land/of" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L145">`Identity.fantasy-land/of :: a -⁠> Identity a`</a>
#### <a name="Identity.fantasy-land/of" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L145">`Identity.fantasy-land/of :: a -⁠> Identity a`</a>

`of (Identity) (x)` is equivalent to `Identity (x)`.

Expand All @@ -63,7 +63,7 @@ Identity (42)
Identity (42)
```

#### <a name="Identity.fantasy-land/chainRec" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L158">`Identity.fantasy-land/chainRec :: ((a -⁠> c, b -⁠> c, a) -⁠> Identity c, a) -⁠> Identity b`</a>
#### <a name="Identity.fantasy-land/chainRec" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L158">`Identity.fantasy-land/chainRec :: ((a -⁠> c, b -⁠> c, a) -⁠> Identity c, a) -⁠> Identity b`</a>

```javascript
> Z.chainRec (
Expand All @@ -81,7 +81,7 @@ Identity (64)
Identity (0)
```

#### <a name="Identity.prototype.@@show" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L181">`Identity#@@show :: Showable a => Identity a ~> () -⁠> String`</a>
#### <a name="Identity.prototype.@@show" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L181">`Identity#@@show :: Showable a => Identity a ~> () -⁠> String`</a>

`show (Identity (x))` is equivalent to `'Identity (' + show (x) + ')'`.

Expand All @@ -90,7 +90,7 @@ Identity (0)
'Identity (["foo", "bar", "baz"])'
```

#### <a name="Identity.prototype.fantasy-land/equals" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L193">`Identity#fantasy-land/equals :: Setoid a => Identity a ~> Identity a -⁠> Boolean`</a>
#### <a name="Identity.prototype.fantasy-land/equals" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L193">`Identity#fantasy-land/equals :: Setoid a => Identity a ~> Identity a -⁠> Boolean`</a>

`Identity (x)` is equal to `Identity (y)` [iff][] `x` is equal to `y`
according to [`Z.equals`][].
Expand All @@ -103,7 +103,7 @@ true
false
```

#### <a name="Identity.prototype.fantasy-land/lte" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L209">`Identity#fantasy-land/lte :: Ord a => Identity a ~> Identity a -⁠> Boolean`</a>
#### <a name="Identity.prototype.fantasy-land/lte" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L209">`Identity#fantasy-land/lte :: Ord a => Identity a ~> Identity a -⁠> Boolean`</a>

`Identity (x)` is less than or equal to `Identity (y)` [iff][] `x` is
less than or equal to `y` according to [`Z.lte`][].
Expand All @@ -114,7 +114,7 @@ less than or equal to `y` according to [`Z.lte`][].
[Identity (0), Identity (1)]
```

#### <a name="Identity.prototype.fantasy-land/concat" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L223">`Identity#fantasy-land/concat :: Semigroup a => Identity a ~> Identity a -⁠> Identity a`</a>
#### <a name="Identity.prototype.fantasy-land/concat" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L223">`Identity#fantasy-land/concat :: Semigroup a => Identity a ~> Identity a -⁠> Identity a`</a>

`concat (Identity (x)) (Identity (y))` is equivalent to
`Identity (concat (x) (y))`.
Expand All @@ -124,7 +124,7 @@ less than or equal to `y` according to [`Z.lte`][].
Identity ([1, 2, 3, 4, 5, 6])
```

#### <a name="Identity.prototype.fantasy-land/map" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L236">`Identity#fantasy-land/map :: Identity a ~> (a -⁠> b) -⁠> Identity b`</a>
#### <a name="Identity.prototype.fantasy-land/map" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L236">`Identity#fantasy-land/map :: Identity a ~> (a -⁠> b) -⁠> Identity b`</a>

`map (f) (Identity (x))` is equivalent to `Identity (f (x))`.

Expand All @@ -133,7 +133,7 @@ Identity ([1, 2, 3, 4, 5, 6])
Identity (8)
```

#### <a name="Identity.prototype.fantasy-land/ap" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L248">`Identity#fantasy-land/ap :: Identity a ~> Identity (a -⁠> b) -⁠> Identity b`</a>
#### <a name="Identity.prototype.fantasy-land/ap" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L248">`Identity#fantasy-land/ap :: Identity a ~> Identity (a -⁠> b) -⁠> Identity b`</a>

`ap (Identity (f)) (Identity (x))` is equivalent to `Identity (f (x))`.

Expand All @@ -142,7 +142,7 @@ Identity (8)
Identity (8)
```

#### <a name="Identity.prototype.fantasy-land/chain" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L260">`Identity#fantasy-land/chain :: Identity a ~> (a -⁠> Identity b) -⁠> Identity b`</a>
#### <a name="Identity.prototype.fantasy-land/chain" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L260">`Identity#fantasy-land/chain :: Identity a ~> (a -⁠> Identity b) -⁠> Identity b`</a>

`chain (f) (Identity (x))` is equivalent to `f (x)`.

Expand All @@ -151,7 +151,7 @@ Identity (8)
Identity (100)
```

#### <a name="Identity.prototype.fantasy-land/reduce" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L272">`Identity#fantasy-land/reduce :: Identity a ~> ((b, a) -⁠> b, b) -⁠> b`</a>
#### <a name="Identity.prototype.fantasy-land/reduce" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L272">`Identity#fantasy-land/reduce :: Identity a ~> ((b, a) -⁠> b, b) -⁠> b`</a>

`reduce (f) (x) (Identity (y))` is equivalent to `f (x) (y)`.

Expand All @@ -160,7 +160,7 @@ Identity (100)
[1, 2, 3, 4, 5, 6]
```

#### <a name="Identity.prototype.fantasy-land/traverse" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L284">`Identity#fantasy-land/traverse :: Applicative f => Identity a ~> (TypeRep f, a -⁠> f b) -⁠> f (Identity b)`</a>
#### <a name="Identity.prototype.fantasy-land/traverse" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L284">`Identity#fantasy-land/traverse :: Applicative f => Identity a ~> (TypeRep f, a -⁠> f b) -⁠> f (Identity b)`</a>

`traverse (_) (f) (Identity (x))` is equivalent to
`map (Identity) (f (x))`.
Expand All @@ -170,7 +170,7 @@ Identity (100)
[Identity (101), Identity (102), Identity (103)]
```

#### <a name="Identity.prototype.fantasy-land/extend" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L297">`Identity#fantasy-land/extend :: Identity a ~> (Identity a -⁠> b) -⁠> Identity b`</a>
#### <a name="Identity.prototype.fantasy-land/extend" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L297">`Identity#fantasy-land/extend :: Identity a ~> (Identity a -⁠> b) -⁠> Identity b`</a>

`extend (f) (Identity (x))` is equivalent to
`Identity (f (Identity (x)))`.
Expand All @@ -180,7 +180,7 @@ Identity (100)
Identity (100)
```

#### <a name="Identity.prototype.fantasy-land/extract" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.0.0/index.js#L310">`Identity#fantasy-land/extract :: Identity a ~> () -⁠> a`</a>
#### <a name="Identity.prototype.fantasy-land/extract" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v2.1.0/index.js#L310">`Identity#fantasy-land/extract :: Identity a ~> () -⁠> a`</a>

`extract (Identity (x))` is equivalent to `x`.

Expand All @@ -190,7 +190,7 @@ Identity (100)
```

[Fantasy Land]: https://github.com/fantasyland/fantasy-land/tree/v4.0.1
[`Z.equals`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v12.0.0#equals
[`Z.lte`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v12.0.0#lte
[`Z.equals`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v12.1.0#equals
[`Z.lte`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v12.1.0#lte
[iff]: https://en.wikipedia.org/wiki/If_and_only_if
[type representative]: https://github.com/fantasyland/fantasy-land/tree/v4.0.1#type-representatives
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "sanctuary-identity",
"version": "2.0.0",
"version": "2.1.0",
"description": "Fantasy Land -compliant Identity type",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit d25f7c2

Please sign in to comment.