summaryrefslogtreecommitdiff
path: root/lc
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-05-02 16:40:07 +0200
committerPéter Diviánszky <divipp@gmail.com>2016-05-02 16:45:18 +0200
commit2fe36db8e0c4197fb4dd55c4de3fc15e038744a2 (patch)
tree62f0636f0fb3da4b0890343ab818e91c2abfc214 /lc
parent35d5c201f7540d857956fd9459ef73706304a641 (diff)
use (:) instead of Cons everywhere
Diffstat (limited to 'lc')
-rw-r--r--lc/Builtins.lc2
-rw-r--r--lc/Internals.lc4
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
480rasterizePrimitive 480rasterizePrimitive
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
122data List a = Nil | Cons a (List a) 122data List a = Nil | (:) a (List a)
123 123
124infixr 5 : 124infixr 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{-