Skip to content

Commit 55cbdef

Browse files
authored
Merge pull request #25 from damncabbage/topic/type-level-operator
Adds /\ type-level operator.
2 parents 64c1a0a + aee6bba commit 55cbdef

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Data/Tuple/Nested.purs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ import Prelude
2727
import Data.Tuple (Tuple(..))
2828

2929
-- | Shorthand for constructing n-tuples as nested pairs.
30-
-- | `a /\ b /\ c /\ d /\ unit` becomes `Tuple a (Tuple b (Tuple c (Tuple d (Tuple unit))))`
30+
-- | `a /\ b /\ c /\ d /\ unit` becomes `Tuple a (Tuple b (Tuple c (Tuple d unit)))`
3131
infixr 6 Tuple as /\
3232

33+
-- | Shorthand for constructing n-tuple types as nested pairs.
34+
-- | `forall a b c d. a /\ b /\ c /\ d /\ Unit` becomes
35+
-- | `forall a b c d. Tuple a (Tuple b (Tuple c (Tuple d Unit)))`
36+
infixr 6 type Tuple as /\
37+
3338
type Tuple1 a = T2 a Unit
3439
type Tuple2 a b = T3 a b Unit
3540
type Tuple3 a b c = T4 a b c Unit

0 commit comments

Comments
 (0)