diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-05-02 16:40:07 +0200 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-05-02 16:45:18 +0200 |
commit | 2fe36db8e0c4197fb4dd55c4de3fc15e038744a2 (patch) | |
tree | 62f0636f0fb3da4b0890343ab818e91c2abfc214 /lc | |
parent | 35d5c201f7540d857956fd9459ef73706304a641 (diff) |
use (:) instead of Cons everywhere
Diffstat (limited to 'lc')
-rw-r--r-- | lc/Builtins.lc | 2 | ||||
-rw-r--r-- | lc/Internals.lc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lc/Builtins.lc b/lc/Builtins.lc index fb7c288f..0ff2f3b1 100644 --- a/lc/Builtins.lc +++ b/lc/Builtins.lc | |||
@@ -479,7 +479,7 @@ data Interpolated t where | |||
479 | 479 | ||
480 | rasterizePrimitive | 480 | rasterizePrimitive |
481 | :: ( map Interpolated b ~ interpolation | 481 | :: ( map Interpolated b ~ interpolation |
482 | , a ~ 'Cons (Vec 4 Float) b ) | 482 | , a ~ Vec 4 Float: b ) |
483 | => HList interpolation -- tuple of Smooth & Flat | 483 | => HList interpolation -- tuple of Smooth & Flat |
484 | -> RasterContext (HList a) x | 484 | -> RasterContext (HList a) x |
485 | -> Primitive (HList a) x | 485 | -> Primitive (HList a) x |
diff --git a/lc/Internals.lc b/lc/Internals.lc index 6e61b4eb..170f2c39 100644 --- a/lc/Internals.lc +++ b/lc/Internals.lc | |||
@@ -119,7 +119,7 @@ instance Eq Nat where | |||
119 | Succ a == Succ b = a == b | 119 | Succ a == Succ b = a == b |
120 | _ == _ = False | 120 | _ == _ = False |
121 | 121 | ||
122 | data List a = Nil | Cons a (List a) | 122 | data List a = Nil | (:) a (List a) |
123 | 123 | ||
124 | infixr 5 : | 124 | infixr 5 : |
125 | 125 | ||
@@ -132,7 +132,7 @@ hlistConsCase | |||
132 | :: forall (e :: Type) (f :: List Type) | 132 | :: forall (e :: Type) (f :: List Type) |
133 | . forall c | 133 | . forall c |
134 | -> (e -> HList f -> c) | 134 | -> (e -> HList f -> c) |
135 | -> HList (Cons e f) | 135 | -> HList (e: f) |
136 | -> c | 136 | -> c |
137 | 137 | ||
138 | {- | 138 | {- |