Skip to content

Commit

Permalink
Version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Feb 20, 2019
1 parent ad0abf0 commit 7853f6c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Sanctuary
Copyright (c) 2019 Sanctuary

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ always contains exactly one value, of type `a`.
. 'Contravariant ❌ ' ]
```

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

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

#### <a name="Identity.@@type" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v1.0.0/index.js#L141">`Identity.@@type :: String`</a>
#### <a name="Identity.@@type" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v1.1.0/index.js#L141">`Identity.@@type :: String`</a>

Identity [type identifier][].

Expand All @@ -63,7 +63,7 @@ Identity [type identifier][].
{namespace: 'sanctuary-identity', name: 'Identity', version: 1}
```

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

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

Expand All @@ -72,7 +72,7 @@ Identity [type identifier][].
Identity (42)
```

#### <a name="Identity.fantasy-land/chainRec" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v1.0.0/index.js#L167">`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/v1.1.0/index.js#L167">`Identity.fantasy-land/chainRec :: ((a -⁠> c, b -⁠> c, a) -⁠> Identity c, a) -⁠> Identity b`</a>

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

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

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

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

#### <a name="Identity.prototype.fantasy-land/equals" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v1.0.0/index.js#L202">`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/v1.1.0/index.js#L202">`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 @@ -112,7 +112,7 @@ true
false
```

#### <a name="Identity.prototype.fantasy-land/lte" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v1.0.0/index.js#L218">`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/v1.1.0/index.js#L218">`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 @@ -123,7 +123,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/v1.0.0/index.js#L232">`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/v1.1.0/index.js#L232">`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 @@ -133,7 +133,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/v1.0.0/index.js#L245">`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/v1.1.0/index.js#L245">`Identity#fantasy-land/map :: Identity a ~> (a -⁠> b) -⁠> Identity b`</a>

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

Expand All @@ -142,7 +142,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/v1.0.0/index.js#L257">`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/v1.1.0/index.js#L257">`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 @@ -151,7 +151,7 @@ Identity (8)
Identity (8)
```

#### <a name="Identity.prototype.fantasy-land/chain" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v1.0.0/index.js#L269">`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/v1.1.0/index.js#L269">`Identity#fantasy-land/chain :: Identity a ~> (a -⁠> Identity b) -⁠> Identity b`</a>

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

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

#### <a name="Identity.prototype.fantasy-land/reduce" href="https://github.com/sanctuary-js/sanctuary-identity/blob/v1.0.0/index.js#L281">`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/v1.1.0/index.js#L281">`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 @@ -169,7 +169,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/v1.0.0/index.js#L293">`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/v1.1.0/index.js#L293">`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 @@ -179,7 +179,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/v1.0.0/index.js#L306">`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/v1.1.0/index.js#L306">`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 @@ -189,7 +189,7 @@ Identity (100)
Identity (100)
```

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

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

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

[Fantasy Land]: https://github.com/fantasyland/fantasy-land/tree/v3.5.0
[`Z.equals`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v9.0.0#equals
[`Z.lte`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v9.0.0#lte
[`Z.equals`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v10.0.0#equals
[`Z.lte`]: https://github.com/sanctuary-js/sanctuary-type-classes/tree/v10.0.0#lte
[iff]: https://en.wikipedia.org/wiki/If_and_only_if
[type identifier]: https://github.com/sanctuary-js/sanctuary-type-identifiers/tree/v2.0.1
[type representative]: https://github.com/fantasyland/fantasy-land/tree/v3.5.0#type-representatives
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sanctuary-identity",
"version": "1.0.0",
"version": "1.1.0",
"description": "Fantasy Land -compliant Identity type",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 7853f6c

Please sign in to comment.