summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-05-03 16:05:11 +0200
committerPéter Diviánszky <divipp@gmail.com>2016-05-03 16:05:11 +0200
commit4742062dea52956de1490ae2e46b25b458ba94a5 (patch)
tree046427e90cbff8eb03e88a7e6a2890ceaa469eca /testdata
parent57d10e734217c6eeaaec61131861bfd2861a4eb0 (diff)
shorten more lambdas
Diffstat (limited to 'testdata')
-rw-r--r--testdata/Builtins.out26
-rw-r--r--testdata/Internals.out8
-rw-r--r--testdata/Material.out71
-rw-r--r--testdata/Prelude.out10
-rw-r--r--testdata/ambig.out2
-rw-r--r--testdata/complex.out20
-rw-r--r--testdata/data.out14
-rw-r--r--testdata/language-features/basic-values/def01.out2
-rw-r--r--testdata/language-features/basic-values/def04.out2
-rw-r--r--testdata/language-features/basic-values/fixity01.out6
-rw-r--r--testdata/language-features/basic-values/fixity02.out4
-rw-r--r--testdata/language-features/basic-values/infix01.out2
-rw-r--r--testdata/language-features/basic-values/infix02.out2
-rw-r--r--testdata/language-features/basic-values/lambda01.out2
-rw-r--r--testdata/language-features/basic-values/lambda03.out4
-rw-r--r--testdata/language-features/basic-values/operator01.out8
-rw-r--r--testdata/language-features/basic-values/operator05.out2
-rw-r--r--testdata/language-features/basic-values/operator06.out2
-rw-r--r--testdata/language-features/basic-values/shadowing03.out2
-rw-r--r--testdata/language-features/basic-values/shadowing04.out2
-rw-r--r--testdata/language-features/basic-values/typesig03.out4
-rw-r--r--testdata/language-features/basic-values/typesig04.out4
-rw-r--r--testdata/language-features/basic-values/typesig05.out2
-rw-r--r--testdata/language-features/basic-values/typesig06.out4
-rw-r--r--testdata/language-features/basic-values/typesig07.out6
-rw-r--r--testdata/language-features/pattern/uncovered.out8
-rw-r--r--testdata/language-features/section/section01.out2
-rw-r--r--testdata/performance/Material.out71
-rw-r--r--testdata/typeclass.out2
29 files changed, 130 insertions, 164 deletions
diff --git a/testdata/Builtins.out b/testdata/Builtins.out
index 0595c3ef..01a4d378 100644
--- a/testdata/Builtins.out
+++ b/testdata/Builtins.out
@@ -6,7 +6,7 @@ data VecS (_ :: Type) :: Nat -> Type where
6 V4 :: forall c . c -> c -> c -> c -> VecS c (fromInt 4) 6 V4 :: forall c . c -> c -> c -> c -> VecS c (fromInt 4)
7mapVec 7mapVec
8 = (\(a :: _) (b :: _) -> case'VecS 8 = (\(a :: _) (b :: _) -> case'VecS
9 (\_ -> \_ -> _ :: _) 9 (\_ _ -> _ :: _)
10 (\(c :: _) (d :: _) -> _rhs (V2 (a c) (a d))) 10 (\(c :: _) (d :: _) -> _rhs (V2 (a c) (a d)))
11 (\(e :: _) (f :: _) (g :: _) -> _rhs (V3 (a e) (a f) (a g))) 11 (\(e :: _) (f :: _) (g :: _) -> _rhs (V3 (a e) (a f) (a g)))
12 (\(h :: _) (i :: _) (j :: _) (k :: _) -> _rhs (V4 (a h) (a i) (a j) (a k))) 12 (\(h :: _) (i :: _) (j :: _) (k :: _) -> _rhs (V4 (a h) (a i) (a j) (a k)))
@@ -76,9 +76,9 @@ data Mat :: Nat -> Nat -> Type -> Type where
76 a 76 a
77 (match'VecS 77 (match'VecS
78 (\_ -> _) 78 (\_ -> _)
79 (\(b :: _) -> \_ -> _rhs b) 79 (\(b :: _) _ -> _rhs b)
80 a 80 a
81 (match'Mat (\_ -> _) (\_ -> \_ (c :: _) -> _rhs c) a undefined))))) 81 (match'Mat (\_ -> _) (\_ _ (c :: _) -> _rhs c) a undefined)))))
82 :: Type -> Type 82 :: Type -> Type
83'Signed 83'Signed
84 = (\(a :: _) -> match'Int 84 = (\(a :: _) -> match'Int
@@ -163,7 +163,7 @@ data Mat :: Nat -> Nat -> Type -> Type where
163 (_rhs ('Empty "no instance of 'Component on ???"))))))) 163 (_rhs ('Empty "no instance of 'Component on ???")))))))
164 :: Type -> Type 164 :: Type -> Type
165zero 165zero
166 = (\ @a -> \ @_ -> match'Int 166 = (\ @a @_ -> match'Int
167 (\_ -> _) 167 (\_ -> _)
168 (_rhs \(b := _rhs (fromInt 0 :: Int)) -> b) 168 (_rhs \(b := _rhs (fromInt 0 :: Int)) -> b)
169 a 169 a
@@ -230,7 +230,7 @@ zero
230 (match'Bool (\_ -> _) (_rhs \(u := _rhs False) -> u) a (_rhs undefined)))))) 230 (match'Bool (\_ -> _) (_rhs \(u := _rhs False) -> u) a (_rhs undefined))))))
231 :: forall v . Component v => v 231 :: forall v . Component v => v
232one 232one
233 = (\ @a -> \ @_ -> match'Int 233 = (\ @a @_ -> match'Int
234 (\_ -> _) 234 (\_ -> _)
235 (_rhs \(b := _rhs (fromInt 1 :: Int)) -> b) 235 (_rhs \(b := _rhs (fromInt 1 :: Int)) -> b)
236 a 236 a
@@ -648,7 +648,7 @@ head
648 = \(a :: _) -> case'List 648 = \(a :: _) -> case'List
649 (\_ -> _ :: _) 649 (\_ -> _ :: _)
650 (_rhs undefined) 650 (_rhs undefined)
651 (\(b :: _) -> \_ -> _rhs b) 651 (\(b :: _) _ -> _rhs b)
652 a 652 a
653++ 653++
654 = \(a :: _) (b :: _) -> case'List 654 = \(a :: _) (b :: _) -> case'List
@@ -718,7 +718,7 @@ data SimpleFragment (_ :: Type) :: Type where
718 SimpleFragment :: forall a . Vec (fromInt 3) Float -> a -> SimpleFragment a 718 SimpleFragment :: forall a . Vec (fromInt 3) Float -> a -> SimpleFragment a
719'Fragment = \(a :: _) (b :: _) -> _rhs ('Vector a ('Maybe ('SimpleFragment b))) 719'Fragment = \(a :: _) (b :: _) -> _rhs ('Vector a ('Maybe ('SimpleFragment b)))
720sFragmentCoords 720sFragmentCoords
721 = \(a :: _) -> case'SimpleFragment (\_ -> _ :: _) (\(b :: _) -> \_ -> _rhs b) a 721 = \(a :: _) -> case'SimpleFragment (\_ -> _ :: _) (\(b :: _) _ -> _rhs b) a
722sFragmentValue 722sFragmentValue
723 = \(a :: _) -> case'SimpleFragment (\_ -> _ :: _) (\_ (b :: _) -> _rhs b) a 723 = \(a :: _) -> case'SimpleFragment (\_ -> _ :: _) (\_ (b :: _) -> _rhs b) a
724'FragmentStream = \(a :: _) (b :: _) -> _rhs ['Fragment a b] 724'FragmentStream = \(a :: _) (b :: _) -> _rhs ['Fragment a b]
@@ -768,7 +768,7 @@ data Swizz :: Type where
768 Sw :: Swizz 768 Sw :: Swizz
769swizzscalar 769swizzscalar
770 = (\(a :: _) (b :: _) -> case'VecS 770 = (\(a :: _) (b :: _) -> case'VecS
771 (\_ -> \_ -> _ :: _) 771 (\_ _ -> _ :: _)
772 (\(c :: _) (d :: _) -> case'Swizz 772 (\(c :: _) (d :: _) -> case'Swizz
773 (\_ -> _ :: _) 773 (\_ -> _ :: _)
774 (_rhs c) 774 (_rhs c)
@@ -794,10 +794,10 @@ swizzscalar
794 :: forall (l :: _) (m :: _) . Vec m l -> Swizz -> l 794 :: forall (l :: _) (m :: _) . Vec m l -> Swizz -> l
795definedVec 795definedVec
796 = (\(a :: _) -> case'VecS 796 = (\(a :: _) -> case'VecS
797 (\_ -> \_ -> _ :: _) 797 (\_ _ -> _ :: _)
798 (\_ -> \_ -> _rhs True) 798 (\_ _ -> _rhs True)
799 (\_ -> \_ -> \_ -> _rhs True) 799 (\_ _ _ -> _rhs True)
800 (\_ -> \_ -> \_ -> \_ -> _rhs True) 800 (\_ _ _ _ -> _rhs True)
801 a) 801 a)
802 :: forall (b :: _) (c :: _) . Vec c b -> Bool 802 :: forall (b :: _) (c :: _) . Vec c b -> Bool
803swizzvector 803swizzvector
@@ -929,7 +929,7 @@ rasterizePrimitive
929rasterizePrimitives 929rasterizePrimitives
930 = \(a :: _) (b :: _) (c :: _) -> _rhs (concat (map (rasterizePrimitive b a) c)) 930 = \(a :: _) (b :: _) (c :: _) -> _rhs (concat (map (rasterizePrimitive b a) c))
931'ImageLC 931'ImageLC
932 = (\(a :: _) -> match'Image (\_ -> _) (\(b :: _) -> \_ -> _rhs b) a undefined) 932 = (\(a :: _) -> match'Image (\_ -> _) (\(b :: _) _ -> _rhs b) a undefined)
933 :: Type -> Nat 933 :: Type -> Nat
934allSame 934allSame
935 = (\(a :: _) -> case'List 935 = (\(a :: _) -> case'List
diff --git a/testdata/Internals.out b/testdata/Internals.out
index c55525d7..c76420ae 100644
--- a/testdata/Internals.out
+++ b/testdata/Internals.out
@@ -80,7 +80,7 @@ isEQ
80 (_rhs ('Empty "no instance of 'Num on ???")))))) 80 (_rhs ('Empty "no instance of 'Num on ???"))))))
81 :: Type -> Type 81 :: Type -> Type
82fromInt 82fromInt
83 = (\ @a -> \ @_ -> match'Int 83 = (\ @a @_ -> match'Int
84 (\_ -> _) 84 (\_ -> _)
85 (_rhs \(b := _rhs \(c :: _) -> c) -> b) 85 (_rhs \(b := _rhs \(c :: _) -> c) -> b)
86 a 86 a
@@ -99,7 +99,7 @@ fromInt
99 (_rhs undefined))))) 99 (_rhs undefined)))))
100 :: forall g . Num g => Int -> g 100 :: forall g . Num g => Int -> g
101compare 101compare
102 = (\ @a -> \ @_ -> match'Int 102 = (\ @a @_ -> match'Int
103 (\_ -> _) 103 (\_ -> _)
104 (_rhs \(b := _rhs primCompareInt) -> b) 104 (_rhs \(b := _rhs primCompareInt) -> b)
105 a 105 a
@@ -114,7 +114,7 @@ compare
114 (match'Nat (\_ -> _) (_rhs \(e := _rhs undefined) -> e) a (_rhs undefined))))) 114 (match'Nat (\_ -> _) (_rhs \(e := _rhs undefined) -> e) a (_rhs undefined)))))
115 :: forall f . Num f => f -> f -> Ordering 115 :: forall f . Num f => f -> f -> Ordering
116negate 116negate
117 = (\ @a -> \ @_ -> match'Int 117 = (\ @a @_ -> match'Int
118 (\_ -> _) 118 (\_ -> _)
119 (_rhs \(b := _rhs primNegateInt) -> b) 119 (_rhs \(b := _rhs primNegateInt) -> b)
120 a 120 a
@@ -156,7 +156,7 @@ negate
156 (_rhs ('Empty "no instance of 'Eq on ???")))))))) 156 (_rhs ('Empty "no instance of 'Eq on ???"))))))))
157 :: Type -> Type 157 :: Type -> Type
158== 158==
159 = (\ @a -> \ @_ -> match'String 159 = (\ @a @_ -> match'String
160 (\_ -> _) 160 (\_ -> _)
161 (_rhs \(b := \(c :: _) (d :: _) -> _rhs (isEQ (primCompareString c d))) -> b) 161 (_rhs \(b := \(c :: _) (d :: _) -> _rhs (isEQ (primCompareString c d))) -> b)
162 a 162 a
diff --git a/testdata/Material.out b/testdata/Material.out
index 67f8b209..2665eadb 100644
--- a/testdata/Material.out
+++ b/testdata/Material.out
@@ -6,16 +6,13 @@ data Entity :: Type where
6 -> Vec (fromInt 4) Float 6 -> Vec (fromInt 4) Float
7 -> Vec (fromInt 3) Float -> Vec (fromInt 4) Float -> Entity 7 -> Vec (fromInt 3) Float -> Vec (fromInt 4) Float -> Entity
8eAmbientLight 8eAmbientLight
9 = \(a :: _) -> case'Entity 9 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\(b :: _) _ _ _ -> _rhs b) a
10 (\_ -> _ :: _)
11 (\(b :: _) -> \_ -> \_ -> \_ -> _rhs b)
12 a
13eDirectedLight 10eDirectedLight
14 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ (b :: _) -> \_ -> \_ -> _rhs b) a 11 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ (b :: _) _ _ -> _rhs b) a
15eLightDir 12eLightDir
16 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ -> \_ (b :: _) -> \_ -> _rhs b) a 13 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ _ (b :: _) _ -> _rhs b) a
17eShaderRGBA 14eShaderRGBA
18 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ -> \_ -> \_ (b :: _) -> _rhs b) a 15 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ _ _ (b :: _) -> _rhs b) a
19data WaveType :: Type where 16data WaveType :: Type where
20 WT_Sin :: WaveType 17 WT_Sin :: WaveType
21 WT_Triangle :: WaveType 18 WT_Triangle :: WaveType
@@ -118,58 +115,57 @@ data StageAttrs :: Type where
118saBlend 115saBlend
119 = \(a :: _) -> case'StageAttrs 116 = \(a :: _) -> case'StageAttrs
120 (\_ -> _ :: _) 117 (\_ -> _ :: _)
121 (\(b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 118 (\(b :: _) _ _ _ _ _ _ _ _ _ _ -> _rhs b)
122 b)
123 a 119 a
124saRGBGen 120saRGBGen
125 = \(a :: _) -> case'StageAttrs 121 = \(a :: _) -> case'StageAttrs
126 (\_ -> _ :: _) 122 (\_ -> _ :: _)
127 (\_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs b) 123 (\_ (b :: _) _ _ _ _ _ _ _ _ _ -> _rhs b)
128 a 124 a
129saAlphaGen 125saAlphaGen
130 = \(a :: _) -> case'StageAttrs 126 = \(a :: _) -> case'StageAttrs
131 (\_ -> _ :: _) 127 (\_ -> _ :: _)
132 (\_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs b) 128 (\_ _ (b :: _) _ _ _ _ _ _ _ _ -> _rhs b)
133 a 129 a
134saTCGen 130saTCGen
135 = \(a :: _) -> case'StageAttrs 131 = \(a :: _) -> case'StageAttrs
136 (\_ -> _ :: _) 132 (\_ -> _ :: _)
137 (\_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs b) 133 (\_ _ _ (b :: _) _ _ _ _ _ _ _ -> _rhs b)
138 a 134 a
139saTCMod 135saTCMod
140 = \(a :: _) -> case'StageAttrs 136 = \(a :: _) -> case'StageAttrs
141 (\_ -> _ :: _) 137 (\_ -> _ :: _)
142 (\_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs b) 138 (\_ _ _ _ (b :: _) _ _ _ _ _ _ -> _rhs b)
143 a 139 a
144saTexture 140saTexture
145 = \(a :: _) -> case'StageAttrs 141 = \(a :: _) -> case'StageAttrs
146 (\_ -> _ :: _) 142 (\_ -> _ :: _)
147 (\_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs b) 143 (\_ _ _ _ _ (b :: _) _ _ _ _ _ -> _rhs b)
148 a 144 a
149saDepthWrite 145saDepthWrite
150 = \(a :: _) -> case'StageAttrs 146 = \(a :: _) -> case'StageAttrs
151 (\_ -> _ :: _) 147 (\_ -> _ :: _)
152 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> _rhs b) 148 (\_ _ _ _ _ _ (b :: _) _ _ _ _ -> _rhs b)
153 a 149 a
154saDepthFunc 150saDepthFunc
155 = \(a :: _) -> case'StageAttrs 151 = \(a :: _) -> case'StageAttrs
156 (\_ -> _ :: _) 152 (\_ -> _ :: _)
157 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> _rhs b) 153 (\_ _ _ _ _ _ _ (b :: _) _ _ _ -> _rhs b)
158 a 154 a
159saAlphaFunc 155saAlphaFunc
160 = \(a :: _) -> case'StageAttrs 156 = \(a :: _) -> case'StageAttrs
161 (\_ -> _ :: _) 157 (\_ -> _ :: _)
162 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> _rhs b) 158 (\_ _ _ _ _ _ _ _ (b :: _) _ _ -> _rhs b)
163 a 159 a
164saDepthMaskExplicit 160saDepthMaskExplicit
165 = \(a :: _) -> case'StageAttrs 161 = \(a :: _) -> case'StageAttrs
166 (\_ -> _ :: _) 162 (\_ -> _ :: _)
167 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> _rhs b) 163 (\_ _ _ _ _ _ _ _ _ (b :: _) _ -> _rhs b)
168 a 164 a
169saTextureUniform 165saTextureUniform
170 = \(a :: _) -> case'StageAttrs 166 = \(a :: _) -> case'StageAttrs
171 (\_ -> _ :: _) 167 (\_ -> _ :: _)
172 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> _rhs b) 168 (\_ _ _ _ _ _ _ _ _ _ (b :: _) -> _rhs b)
173 a 169 a
174defaultStageAttrs 170defaultStageAttrs
175 = _rhs 171 = _rhs
@@ -198,75 +194,62 @@ data CommonAttrs :: Type where
198caSkyParms 194caSkyParms
199 = \(a :: _) -> case'CommonAttrs 195 = \(a :: _) -> case'CommonAttrs
200 (\_ -> _ :: _) 196 (\_ -> _ :: _)
201 (\(b 197 (\(b :: _) _ _ _ _ _ _ _ _ _ _ _ -> _rhs b)
202 :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs
203 b)
204 a 198 a
205caFogParms 199caFogParms
206 = \(a :: _) -> case'CommonAttrs 200 = \(a :: _) -> case'CommonAttrs
207 (\_ -> _ :: _) 201 (\_ -> _ :: _)
208 (\_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 202 (\_ (b :: _) _ _ _ _ _ _ _ _ _ _ -> _rhs b)
209 b)
210 a 203 a
211caPortal 204caPortal
212 = \(a :: _) -> case'CommonAttrs 205 = \(a :: _) -> case'CommonAttrs
213 (\_ -> _ :: _) 206 (\_ -> _ :: _)
214 (\_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 207 (\_ _ (b :: _) _ _ _ _ _ _ _ _ _ -> _rhs b)
215 b)
216 a 208 a
217caSort 209caSort
218 = \(a :: _) -> case'CommonAttrs 210 = \(a :: _) -> case'CommonAttrs
219 (\_ -> _ :: _) 211 (\_ -> _ :: _)
220 (\_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 212 (\_ _ _ (b :: _) _ _ _ _ _ _ _ _ -> _rhs b)
221 b)
222 a 213 a
223caEntityMergable 214caEntityMergable
224 = \(a :: _) -> case'CommonAttrs 215 = \(a :: _) -> case'CommonAttrs
225 (\_ -> _ :: _) 216 (\_ -> _ :: _)
226 (\_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 217 (\_ _ _ _ (b :: _) _ _ _ _ _ _ _ -> _rhs b)
227 b)
228 a 218 a
229caFogOnly 219caFogOnly
230 = \(a :: _) -> case'CommonAttrs 220 = \(a :: _) -> case'CommonAttrs
231 (\_ -> _ :: _) 221 (\_ -> _ :: _)
232 (\_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 222 (\_ _ _ _ _ (b :: _) _ _ _ _ _ _ -> _rhs b)
233 b)
234 a 223 a
235caCull 224caCull
236 = \(a :: _) -> case'CommonAttrs 225 = \(a :: _) -> case'CommonAttrs
237 (\_ -> _ :: _) 226 (\_ -> _ :: _)
238 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 227 (\_ _ _ _ _ _ (b :: _) _ _ _ _ _ -> _rhs b)
239 b)
240 a 228 a
241caDeformVertexes 229caDeformVertexes
242 = \(a :: _) -> case'CommonAttrs 230 = \(a :: _) -> case'CommonAttrs
243 (\_ -> _ :: _) 231 (\_ -> _ :: _)
244 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> _rhs 232 (\_ _ _ _ _ _ _ (b :: _) _ _ _ _ -> _rhs b)
245 b)
246 a 233 a
247caNoMipMaps 234caNoMipMaps
248 = \(a :: _) -> case'CommonAttrs 235 = \(a :: _) -> case'CommonAttrs
249 (\_ -> _ :: _) 236 (\_ -> _ :: _)
250 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> _rhs 237 (\_ _ _ _ _ _ _ _ (b :: _) _ _ _ -> _rhs b)
251 b)
252 a 238 a
253caPolygonOffset 239caPolygonOffset
254 = \(a :: _) -> case'CommonAttrs 240 = \(a :: _) -> case'CommonAttrs
255 (\_ -> _ :: _) 241 (\_ -> _ :: _)
256 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> _rhs 242 (\_ _ _ _ _ _ _ _ _ (b :: _) _ _ -> _rhs b)
257 b)
258 a 243 a
259caStages 244caStages
260 = \(a :: _) -> case'CommonAttrs 245 = \(a :: _) -> case'CommonAttrs
261 (\_ -> _ :: _) 246 (\_ -> _ :: _)
262 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> _rhs 247 (\_ _ _ _ _ _ _ _ _ _ (b :: _) _ -> _rhs b)
263 b)
264 a 248 a
265caIsSky 249caIsSky
266 = \(a :: _) -> case'CommonAttrs 250 = \(a :: _) -> case'CommonAttrs
267 (\_ -> _ :: _) 251 (\_ -> _ :: _)
268 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> _rhs 252 (\_ _ _ _ _ _ _ _ _ _ _ (b :: _) -> _rhs b)
269 b)
270 a 253 a
271defaultCommonAttrs 254defaultCommonAttrs
272 = _rhs 255 = _rhs
diff --git a/testdata/Prelude.out b/testdata/Prelude.out
index 9f79ca67..0d9a2657 100644
--- a/testdata/Prelude.out
+++ b/testdata/Prelude.out
@@ -5,7 +5,7 @@ infixl 7 PrimDot
5infixr 5 ++ 5infixr 5 ++
6infixr 3 *** 6infixr 3 ***
7infixr 0 $ 7infixr 0 $
8const = \(a :: _) -> \_ -> _rhs a 8const = \(a :: _) _ -> _rhs a
9otherwise = _rhs True 9otherwise = _rhs True
10& = \(a :: _) (b :: _) -> _rhs (b a) 10& = \(a :: _) (b :: _) -> _rhs (b a)
11$ = _rhs \(a :: _) (b :: _) -> a b 11$ = _rhs \(a :: _) (b :: _) -> a b
@@ -158,7 +158,7 @@ sortBy
158 (\(c :: _) (d :: _) -> case'List 158 (\(c :: _) (d :: _) -> case'List
159 (\_ -> _ :: _) 159 (\_ -> _ :: _)
160 (_rhs (c : [])) 160 (_rhs (c : []))
161 (\_ -> \_ -> _rhs (uncurry (mergeBy a) ((sortBy a *** sortBy a) (split b)))) 161 (\_ _ -> _rhs (uncurry (mergeBy a) ((sortBy a *** sortBy a) (split b))))
162 d) 162 d)
163 b 163 b
164iterate 164iterate
@@ -199,15 +199,15 @@ isKeyC
199 (primIfThenElse (a == f) (b `'EqCTt` g) (isKeyC a b e))) 199 (primIfThenElse (a == f) (b `'EqCTt` g) (isKeyC a b e)))
200 d) 200 d)
201 c 201 c
202fstTup = _rhs (hlistConsCase (_ :: _) \(a :: _) -> \_ -> a) 202fstTup = _rhs (hlistConsCase (_ :: _) \(a :: _) _ -> a)
203sndTup = _rhs (hlistConsCase (_ :: _) \_ (a :: _) -> a) 203sndTup = _rhs (hlistConsCase (_ :: _) \_ (a :: _) -> a)
204project 204project
205 = (\ @(a :: _) @(b :: _) (c :: _) -> \ @_ (d :: _) -> case'List 205 = (\ @(a :: _) @(b :: _) (c :: _) @_ (d :: _) -> case'List
206 (\_ -> _ :: _) 206 (\_ -> _ :: _)
207 (_rhs undefined) 207 (_rhs undefined)
208 (\(e :: _) (f :: _) -> case'RecItem 208 (\(e :: _) (f :: _) -> case'RecItem
209 (\_ -> _ :: _) 209 (\_ -> _ :: _)
210 (\(g :: _) -> \_ -> case'RecordC 210 (\(g :: _) _ -> case'RecordC
211 (\_ -> _ :: _) 211 (\_ -> _ :: _)
212 (\(h :: _) -> case'Bool 212 (\(h :: _) -> case'Bool
213 (\_ -> _ :: _) 213 (\_ -> _ :: _)
diff --git a/testdata/ambig.out b/testdata/ambig.out
index f2146d1c..00f0bcc8 100644
--- a/testdata/ambig.out
+++ b/testdata/ambig.out
@@ -1,6 +1,6 @@
1------------ desugared source code 1------------ desugared source code
2h 2h
3 = \(a :: _) (b :: _) -> \_ -> _rhs 3 = \(a :: _) (b :: _) _ -> _rhs
4 \(c 4 \(c
5 := _rhs 5 := _rhs
6 ((\(d :: _) -> hlistConsCase 6 ((\(d :: _) -> hlistConsCase
diff --git a/testdata/complex.out b/testdata/complex.out
index 8e93c8fe..2154a46f 100644
--- a/testdata/complex.out
+++ b/testdata/complex.out
@@ -4,7 +4,7 @@ data Repr :: Type where
4 Polar :: Repr 4 Polar :: Repr
5data Complex :: Repr -> Type where 5data Complex :: Repr -> Type where
6 Complex :: forall (a :: _) . Float -> Float -> Complex a 6 Complex :: forall (a :: _) . Float -> Float -> Complex a
7repr = (\ @(a :: _) -> \_ -> _rhs a) :: forall (b :: _) . Complex b -> Repr 7repr = (\ @(a :: _) _ -> _rhs a) :: forall (b :: _) . Complex b -> Repr
8normal 8normal
9 = (\(a :: _) (b :: _) -> _rhs (Complex a b)) :: Float -> Float -> Complex Normal 9 = (\(a :: _) (b :: _) -> _rhs (Complex a b)) :: Float -> Float -> Complex Normal
10polar 10polar
@@ -13,15 +13,15 @@ cabs
13 = (\ @(a :: _) (b :: _) -> case'Repr 13 = (\ @(a :: _) (b :: _) -> case'Repr
14 (\_ -> _ :: _) 14 (\_ -> _ :: _)
15 (case'Complex 15 (case'Complex
16 (\_ -> \_ -> _ :: _) 16 (\_ _ -> _ :: _)
17 (\(c :: _) (d :: _) -> _rhs (sqrt (c * c + d * d))) 17 (\(c :: _) (d :: _) -> _rhs (sqrt (c * c + d * d)))
18 b) 18 b)
19 (case'Complex (\_ -> \_ -> _ :: _) (\(e :: _) -> \_ -> _rhs e) b) 19 (case'Complex (\_ _ -> _ :: _) (\(e :: _) _ -> _rhs e) b)
20 a) 20 a)
21 :: forall (f :: _) . Complex f -> Float 21 :: forall (f :: _) . Complex f -> Float
22toPolar 22toPolar
23 = (\(a :: _) -> case'Complex 23 = (\(a :: _) -> case'Complex
24 (\_ -> \_ -> _ :: _) 24 (\_ _ -> _ :: _)
25 (\(b :: _) (c :: _) -> _rhs 25 (\(b :: _) (c :: _) -> _rhs
26 \(d := _rhs (sqrt (b * b + c * c))) -> primIfThenElse 26 \(d := _rhs (sqrt (b * b + c * c))) -> primIfThenElse
27 (b > 0.0) 27 (b > 0.0)
@@ -43,21 +43,21 @@ toPolar
43 :: Complex Normal -> Complex Polar 43 :: Complex Normal -> Complex Polar
44toNormal 44toNormal
45 = (\(a :: _) -> case'Complex 45 = (\(a :: _) -> case'Complex
46 (\_ -> \_ -> _ :: _) 46 (\_ _ -> _ :: _)
47 (\(b :: _) (c :: _) -> _rhs (Complex (b * cos c) (b * sin c))) 47 (\(b :: _) (c :: _) -> _rhs (Complex (b * cos c) (b * sin c)))
48 a) 48 a)
49 :: Complex Polar -> Complex Normal 49 :: Complex Polar -> Complex Normal
50it_should_fail 50it_should_fail
51 = \(a :: _) -> case'Complex (\_ -> \_ -> _ :: _) (\(b :: _) -> \_ -> _rhs b) a 51 = \(a :: _) -> case'Complex (\_ _ -> _ :: _) (\(b :: _) _ -> _rhs b) a
52add 52add
53 = (\ @(a :: _) @(b :: _) (c :: _) (d :: _) -> case'Repr 53 = (\ @(a :: _) @(b :: _) (c :: _) (d :: _) -> case'Repr
54 (\_ -> _ :: _) 54 (\_ -> _ :: _)
55 (case'Repr 55 (case'Repr
56 (\_ -> _ :: _) 56 (\_ -> _ :: _)
57 (case'Complex 57 (case'Complex
58 (\_ -> \_ -> _ :: _) 58 (\_ _ -> _ :: _)
59 (\(e :: _) (f :: _) -> case'Complex 59 (\(e :: _) (f :: _) -> case'Complex
60 (\_ -> \_ -> _ :: _) 60 (\_ _ -> _ :: _)
61 (\(g :: _) (h :: _) -> _rhs (Complex (e + g) (f + h))) 61 (\(g :: _) (h :: _) -> _rhs (Complex (e + g) (f + h)))
62 d) 62 d)
63 c) 63 c)
@@ -72,9 +72,9 @@ mul
72 (case'Repr 72 (case'Repr
73 (\_ -> _ :: _) 73 (\_ -> _ :: _)
74 (case'Complex 74 (case'Complex
75 (\_ -> \_ -> _ :: _) 75 (\_ _ -> _ :: _)
76 (\(e :: _) (f :: _) -> case'Complex 76 (\(e :: _) (f :: _) -> case'Complex
77 (\_ -> \_ -> _ :: _) 77 (\_ _ -> _ :: _)
78 (\(g :: _) (h :: _) -> _rhs (Complex (e * g - f * h) (f * g + e * h))) 78 (\(g :: _) (h :: _) -> _rhs (Complex (e * g - f * h) (f * g + e * h)))
79 d) 79 d)
80 c) 80 c)
diff --git a/testdata/data.out b/testdata/data.out
index 04576355..ae819782 100644
--- a/testdata/data.out
+++ b/testdata/data.out
@@ -12,7 +12,7 @@ x
12 = \(a :: _) -> case'Data2 12 = \(a :: _) -> case'Data2
13 (\_ -> _ :: _) 13 (\_ -> _ :: _)
14 (\_ -> _rhs undefined) 14 (\_ -> _rhs undefined)
15 (\(b :: _) -> \_ -> _rhs b) 15 (\(b :: _) _ -> _rhs b)
16 (\(c :: _) -> _rhs c) 16 (\(c :: _) -> _rhs c)
17 (_rhs undefined) 17 (_rhs undefined)
18 a 18 a
@@ -32,22 +32,22 @@ a5
32 = \(a :: _) -> case'Data5 32 = \(a :: _) -> case'Data5
33 (\_ -> _ :: _) 33 (\_ -> _ :: _)
34 (\(b :: _) -> _rhs b) 34 (\(b :: _) -> _rhs b)
35 (\(c :: _) -> \_ -> \_ -> _rhs c) 35 (\(c :: _) _ _ -> _rhs c)
36 (\_ -> \_ -> \_ -> \_ -> \_ -> _rhs undefined) 36 (\_ _ _ _ _ -> _rhs undefined)
37 a 37 a
38b5 38b5
39 = \(a :: _) -> case'Data5 39 = \(a :: _) -> case'Data5
40 (\_ -> _ :: _) 40 (\_ -> _ :: _)
41 (\_ -> _rhs undefined) 41 (\_ -> _rhs undefined)
42 (\_ (b :: _) -> \_ -> _rhs b) 42 (\_ (b :: _) _ -> _rhs b)
43 (\_ -> \_ -> \_ -> \_ -> \_ -> _rhs undefined) 43 (\_ _ _ _ _ -> _rhs undefined)
44 a 44 a
45c5 45c5
46 = \(a :: _) -> case'Data5 46 = \(a :: _) -> case'Data5
47 (\_ -> _ :: _) 47 (\_ -> _ :: _)
48 (\_ -> _rhs undefined) 48 (\_ -> _rhs undefined)
49 (\_ -> \_ (b :: _) -> _rhs b) 49 (\_ _ (b :: _) -> _rhs b)
50 (\_ -> \_ -> \_ -> \_ -> \_ -> _rhs undefined) 50 (\_ _ _ _ _ -> _rhs undefined)
51 a 51 a
52main is not found 52main is not found
53------------ trace 53------------ trace
diff --git a/testdata/language-features/basic-values/def01.out b/testdata/language-features/basic-values/def01.out
index bdc4950d..6aa4d014 100644
--- a/testdata/language-features/basic-values/def01.out
+++ b/testdata/language-features/basic-values/def01.out
@@ -1,7 +1,7 @@
1------------ desugared source code 1------------ desugared source code
2unit = _rhs HNil 2unit = _rhs HNil
3fun1 = \_ -> _rhs (fromInt 1) 3fun1 = \_ -> _rhs (fromInt 1)
4fun2 = \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 'c' 4fun2 = \_ _ _ _ _ -> _rhs 'c'
5main is not found 5main is not found
6------------ trace 6------------ trace
7unit :: () 7unit :: ()
diff --git a/testdata/language-features/basic-values/def04.out b/testdata/language-features/basic-values/def04.out
index bcec7dab..18c66ed9 100644
--- a/testdata/language-features/basic-values/def04.out
+++ b/testdata/language-features/basic-values/def04.out
@@ -6,7 +6,7 @@ fun
6 (_rhs '1') 6 (_rhs '1')
7 (fromInt 1 == a) 7 (fromInt 1 == a)
8fun2 8fun2
9 = \(a :: _) -> \_ -> case'Bool 9 = \(a :: _) _ -> case'Bool
10 (\_ -> _ :: _) 10 (\_ -> _ :: _)
11 (case'Bool (\_ -> _ :: _) (_rhs '_') (_rhs '2') (fromInt 2 == a)) 11 (case'Bool (\_ -> _ :: _) (_rhs '_') (_rhs '2') (fromInt 2 == a))
12 (_rhs '1') 12 (_rhs '1')
diff --git a/testdata/language-features/basic-values/fixity01.out b/testdata/language-features/basic-values/fixity01.out
index ba0fb828..82d3c5a6 100644
--- a/testdata/language-features/basic-values/fixity01.out
+++ b/testdata/language-features/basic-values/fixity01.out
@@ -1,7 +1,7 @@
1------------ desugared source code 1------------ desugared source code
2funL = \(a :: _) -> \_ -> _rhs a 2funL = \(a :: _) _ -> _rhs a
3funR = \(a :: _) -> \_ -> _rhs a 3funR = \(a :: _) _ -> _rhs a
4<<<< = \(a :: _) -> \_ -> _rhs a 4<<<< = \(a :: _) _ -> _rhs a
5>>>> = \_ (a :: _) -> _rhs a 5>>>> = \_ (a :: _) -> _rhs a
6infixr 7 funL 6infixr 7 funL
7infixr 7 <<<< 7infixr 7 <<<<
diff --git a/testdata/language-features/basic-values/fixity02.out b/testdata/language-features/basic-values/fixity02.out
index f14d7e38..baf54313 100644
--- a/testdata/language-features/basic-values/fixity02.out
+++ b/testdata/language-features/basic-values/fixity02.out
@@ -1,7 +1,7 @@
1------------ desugared source code 1------------ desugared source code
2funL = \(a :: _) -> \_ -> _rhs a 2funL = \(a :: _) _ -> _rhs a
3funR = \_ (a :: _) -> _rhs a 3funR = \_ (a :: _) -> _rhs a
4<@ = \(a :: _) -> \_ -> _rhs a 4<@ = \(a :: _) _ -> _rhs a
5@> = \_ (a :: _) -> _rhs a 5@> = \_ (a :: _) -> _rhs a
6infixr 7 funL 6infixr 7 funL
7infixr 7 <@ 7infixr 7 <@
diff --git a/testdata/language-features/basic-values/infix01.out b/testdata/language-features/basic-values/infix01.out
index dbfe5d56..013b0a25 100644
--- a/testdata/language-features/basic-values/infix01.out
+++ b/testdata/language-features/basic-values/infix01.out
@@ -1,5 +1,5 @@
1------------ desugared source code 1------------ desugared source code
2fun = \_ -> \_ -> _rhs HNil 2fun = \_ _ -> _rhs HNil
3value = \(a :: _) (b :: _) -> _rhs (a `fun` b) 3value = \(a :: _) (b :: _) -> _rhs (a `fun` b)
4main is not found 4main is not found
5------------ trace 5------------ trace
diff --git a/testdata/language-features/basic-values/infix02.out b/testdata/language-features/basic-values/infix02.out
index c86a773f..dd15a9e9 100644
--- a/testdata/language-features/basic-values/infix02.out
+++ b/testdata/language-features/basic-values/infix02.out
@@ -1,5 +1,5 @@
1------------ desugared source code 1------------ desugared source code
2fun = \_ -> \_ -> \_ -> _rhs HNil 2fun = \_ _ _ -> _rhs HNil
3value = \(a :: _) (b :: _) -> _rhs (a `fun` b) 3value = \(a :: _) (b :: _) -> _rhs (a `fun` b)
4main is not found 4main is not found
5------------ trace 5------------ trace
diff --git a/testdata/language-features/basic-values/lambda01.out b/testdata/language-features/basic-values/lambda01.out
index 4598e8d8..0d73915c 100644
--- a/testdata/language-features/basic-values/lambda01.out
+++ b/testdata/language-features/basic-values/lambda01.out
@@ -2,7 +2,7 @@
2fun1 = _rhs \_ -> HNil 2fun1 = _rhs \_ -> HNil
3fun2 = _rhs \_ -> HNil 3fun2 = _rhs \_ -> HNil
4fun3 = _rhs \_ -> HNil 4fun3 = _rhs \_ -> HNil
5fun4 = _rhs \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> HNil 5fun4 = _rhs \_ _ _ _ _ _ _ _ _ -> HNil
6main is not found 6main is not found
7------------ trace 7------------ trace
8fun1 :: forall a . a -> () 8fun1 :: forall a . a -> ()
diff --git a/testdata/language-features/basic-values/lambda03.out b/testdata/language-features/basic-values/lambda03.out
index 990af1ad..5ea529b3 100644
--- a/testdata/language-features/basic-values/lambda03.out
+++ b/testdata/language-features/basic-values/lambda03.out
@@ -1,6 +1,6 @@
1------------ desugared source code 1------------ desugared source code
2fun1 = _rhs \_ (a :: _) -> \_ -> a 2fun1 = _rhs \_ (a :: _) _ -> a
3fun2 = \(a :: _) -> _rhs \_ -> \_ -> \_ -> a 3fun2 = \(a :: _) -> _rhs \_ _ _ -> a
4main is not found 4main is not found
5------------ trace 5------------ trace
6fun1 :: forall a b c . a -> b -> c -> b 6fun1 :: forall a b c . a -> b -> c -> b
diff --git a/testdata/language-features/basic-values/operator01.out b/testdata/language-features/basic-values/operator01.out
index 0b8f12c3..96aefcdc 100644
--- a/testdata/language-features/basic-values/operator01.out
+++ b/testdata/language-features/basic-values/operator01.out
@@ -1,8 +1,8 @@
1------------ desugared source code 1------------ desugared source code
2#$# = \_ -> \_ -> _rhs HNil 2#$# = \_ _ -> _rhs HNil
3$$# = \_ -> \_ -> _rhs HNil 3$$# = \_ _ -> _rhs HNil
4$$$# = \_ -> \_ -> _rhs HNil 4$$$# = \_ _ -> _rhs HNil
5$$$ = \_ -> \_ -> _rhs HNil 5$$$ = \_ _ -> _rhs HNil
6main is not found 6main is not found
7------------ trace 7------------ trace
8#$# :: forall a b . a -> b -> () 8#$# :: forall a b . a -> b -> ()
diff --git a/testdata/language-features/basic-values/operator05.out b/testdata/language-features/basic-values/operator05.out
index b6f270bb..58ad31cd 100644
--- a/testdata/language-features/basic-values/operator05.out
+++ b/testdata/language-features/basic-values/operator05.out
@@ -1,5 +1,5 @@
1------------ desugared source code 1------------ desugared source code
2value1 = _rhs \(a := \_ -> \_ -> _rhs HNil) -> a HNil HNil 2value1 = _rhs \(a := \_ _ -> _rhs HNil) -> a HNil HNil
3main is not found 3main is not found
4------------ trace 4------------ trace
5value1 :: () 5value1 :: ()
diff --git a/testdata/language-features/basic-values/operator06.out b/testdata/language-features/basic-values/operator06.out
index d91194d9..6f5d6982 100644
--- a/testdata/language-features/basic-values/operator06.out
+++ b/testdata/language-features/basic-values/operator06.out
@@ -1,5 +1,5 @@
1------------ desugared source code 1------------ desugared source code
2value1 = _rhs \(a := \_ -> \_ -> _rhs HNil) -> a HNil HNil 2value1 = _rhs \(a := \_ _ -> _rhs HNil) -> a HNil HNil
3main is not found 3main is not found
4------------ trace 4------------ trace
5value1 :: () 5value1 :: ()
diff --git a/testdata/language-features/basic-values/shadowing03.out b/testdata/language-features/basic-values/shadowing03.out
index 8bfee196..6e0ca5e0 100644
--- a/testdata/language-features/basic-values/shadowing03.out
+++ b/testdata/language-features/basic-values/shadowing03.out
@@ -1,5 +1,5 @@
1------------ desugared source code 1------------ desugared source code
2x = \_ -> \_ -> _rhs HNil 2x = \_ _ -> _rhs HNil
3main is not found 3main is not found
4------------ trace 4------------ trace
5x :: forall a b . a -> b -> () 5x :: forall a b . a -> b -> ()
diff --git a/testdata/language-features/basic-values/shadowing04.out b/testdata/language-features/basic-values/shadowing04.out
index 281cb141..6d20512d 100644
--- a/testdata/language-features/basic-values/shadowing04.out
+++ b/testdata/language-features/basic-values/shadowing04.out
@@ -1,5 +1,5 @@
1------------ desugared source code 1------------ desugared source code
2__ = \_ -> \_ -> _rhs HNil 2__ = \_ _ -> _rhs HNil
3main is not found 3main is not found
4------------ trace 4------------ trace
5__ :: forall a b . a -> b -> () 5__ :: forall a b . a -> b -> ()
diff --git a/testdata/language-features/basic-values/typesig03.out b/testdata/language-features/basic-values/typesig03.out
index 61adce6b..59bcaa12 100644
--- a/testdata/language-features/basic-values/typesig03.out
+++ b/testdata/language-features/basic-values/typesig03.out
@@ -1,9 +1,9 @@
1------------ desugared source code 1------------ desugared source code
2fun1 2fun1
3 = (\_ -> \_ -> \_ -> _rhs HNil) 3 = (\_ _ _ -> _rhs HNil)
4 :: forall (a :: _) (b :: _) (c :: _) . a -> b -> c -> HList '[] 4 :: forall (a :: _) (b :: _) (c :: _) . a -> b -> c -> HList '[]
5fun2 5fun2
6 = (\_ -> \_ -> \_ -> _rhs HNil) 6 = (\_ _ _ -> _rhs HNil)
7 :: forall (a :: _) (b :: _) (c :: _) . a -> b -> c -> HList '[] 7 :: forall (a :: _) (b :: _) (c :: _) . a -> b -> c -> HList '[]
8main is not found 8main is not found
9------------ trace 9------------ trace
diff --git a/testdata/language-features/basic-values/typesig04.out b/testdata/language-features/basic-values/typesig04.out
index d37e8d1b..15b67c43 100644
--- a/testdata/language-features/basic-values/typesig04.out
+++ b/testdata/language-features/basic-values/typesig04.out
@@ -1,9 +1,9 @@
1------------ desugared source code 1------------ desugared source code
2fun1 2fun1
3 = (\_ -> \_ -> _rhs HNil) 3 = (\_ _ -> _rhs HNil)
4 :: forall (a :: _) (b :: _) (c :: _) . a -> (b -> c) -> HList '[] 4 :: forall (a :: _) (b :: _) (c :: _) . a -> (b -> c) -> HList '[]
5fun2 5fun2
6 = (\_ -> \_ -> _rhs HNil) 6 = (\_ _ -> _rhs HNil)
7 :: forall (a :: _) (b :: _) (c :: _) . a -> (b -> c) -> HList '[] 7 :: forall (a :: _) (b :: _) (c :: _) . a -> (b -> c) -> HList '[]
8main is not found 8main is not found
9------------ trace 9------------ trace
diff --git a/testdata/language-features/basic-values/typesig05.out b/testdata/language-features/basic-values/typesig05.out
index b2676de8..06c14130 100644
--- a/testdata/language-features/basic-values/typesig05.out
+++ b/testdata/language-features/basic-values/typesig05.out
@@ -1,5 +1,5 @@
1------------ desugared source code 1------------ desugared source code
2funL = \(a :: _) -> \_ -> _rhs a 2funL = \(a :: _) _ -> _rhs a
3funR = \_ (a :: _) -> _rhs a 3funR = \_ (a :: _) -> _rhs a
4value1 = _rhs (funL 'a' "b" :: Char) 4value1 = _rhs (funL 'a' "b" :: Char)
5value2 = _rhs (funR 'a' "b" :: String) 5value2 = _rhs (funR 'a' "b" :: String)
diff --git a/testdata/language-features/basic-values/typesig06.out b/testdata/language-features/basic-values/typesig06.out
index 5a4bfa41..bf0f6dea 100644
--- a/testdata/language-features/basic-values/typesig06.out
+++ b/testdata/language-features/basic-values/typesig06.out
@@ -1,6 +1,6 @@
1------------ desugared source code 1------------ desugared source code
2funL = \(a :: _) -> \_ -> _rhs a 2funL = \(a :: _) _ -> _rhs a
3<@ = \(a :: _) -> \_ -> _rhs a 3<@ = \(a :: _) _ -> _rhs a
4value1 = _rhs ("hi" <@ 1.2 :: String) 4value1 = _rhs ("hi" <@ 1.2 :: String)
5value2 = _rhs ("hi" `funL` 1.2 :: String) 5value2 = _rhs ("hi" `funL` 1.2 :: String)
6main is not found 6main is not found
diff --git a/testdata/language-features/basic-values/typesig07.out b/testdata/language-features/basic-values/typesig07.out
index f45f79f2..c589424f 100644
--- a/testdata/language-features/basic-values/typesig07.out
+++ b/testdata/language-features/basic-values/typesig07.out
@@ -2,9 +2,9 @@
2value1 = _rhs (fromInt 1) :: Int 2value1 = _rhs (fromInt 1) :: Int
3value2 = _rhs (fromInt 2) :: Int 3value2 = _rhs (fromInt 2) :: Int
4value3 = _rhs (fromInt 3) :: Int 4value3 = _rhs (fromInt 3) :: Int
5value4 = (\_ -> \_ -> _rhs HNil) :: HList '[] -> HList '[] -> HList '[] 5value4 = (\_ _ -> _rhs HNil) :: HList '[] -> HList '[] -> HList '[]
6@@@ = (\_ -> \_ -> _rhs HNil) :: HList '[] -> HList '[] -> HList '[] 6@@@ = (\_ _ -> _rhs HNil) :: HList '[] -> HList '[] -> HList '[]
7value6 = (\_ -> \_ -> _rhs HNil) :: HList '[] -> HList '[] -> HList '[] 7value6 = (\_ _ -> _rhs HNil) :: HList '[] -> HList '[] -> HList '[]
8main is not found 8main is not found
9------------ trace 9------------ trace
10value1 :: Int 10value1 :: Int
diff --git a/testdata/language-features/pattern/uncovered.out b/testdata/language-features/pattern/uncovered.out
index d75adc31..9af16a3f 100644
--- a/testdata/language-features/pattern/uncovered.out
+++ b/testdata/language-features/pattern/uncovered.out
@@ -31,7 +31,7 @@ g
31 (\(f :: _) (g :: _) -> case'Bool 31 (\(f :: _) (g :: _) -> case'Bool
32 (\_ -> _ :: _) 32 (\_ -> _ :: _)
33 (_rhs undefined) 33 (_rhs undefined)
34 (case'List (\_ -> _ :: _) (_rhs False) (\_ -> \_ -> _rhs undefined) g) 34 (case'List (\_ -> _ :: _) (_rhs False) (\_ _ -> _rhs undefined) g)
35 f) 35 f)
36 e) 36 e)
37 (_rhs undefined) 37 (_rhs undefined)
@@ -61,14 +61,14 @@ h
61 (\_ -> _ :: _) 61 (\_ -> _ :: _)
62 (case'List 62 (case'List
63 (\_ -> _ :: _) 63 (\_ -> _ :: _)
64 (case'List (\_ -> _ :: _) (_rhs True) (\_ -> \_ -> _rhs undefined) g) 64 (case'List (\_ -> _ :: _) (_rhs True) (\_ _ -> _rhs undefined) g)
65 (\_ -> \_ -> _rhs undefined) 65 (\_ _ -> _rhs undefined)
66 i) 66 i)
67 (_rhs undefined) 67 (_rhs undefined)
68 h) 68 h)
69 f) 69 f)
70 c) 70 c)
71 (\_ -> \_ -> _rhs undefined) 71 (\_ _ -> _rhs undefined)
72 e) 72 e)
73 d) 73 d)
74 b) 74 b)
diff --git a/testdata/language-features/section/section01.out b/testdata/language-features/section/section01.out
index 0c51e14e..9af1bf31 100644
--- a/testdata/language-features/section/section01.out
+++ b/testdata/language-features/section/section01.out
@@ -1,5 +1,5 @@
1------------ desugared source code 1------------ desugared source code
2!@! = \_ -> \_ -> _rhs HNil 2!@! = \_ _ -> _rhs HNil
3value1 = \(a :: _) -> _rhs \(b :: _) -> a !@! b 3value1 = \(a :: _) -> _rhs \(b :: _) -> a !@! b
4value2 = \(a :: _) -> _rhs \(b :: _) -> b !@! a 4value2 = \(a :: _) -> _rhs \(b :: _) -> b !@! a
5main is not found 5main is not found
diff --git a/testdata/performance/Material.out b/testdata/performance/Material.out
index 3b623709..76e3c20c 100644
--- a/testdata/performance/Material.out
+++ b/testdata/performance/Material.out
@@ -6,16 +6,13 @@ data Entity :: Type where
6 -> Vec (fromInt 4) Float 6 -> Vec (fromInt 4) Float
7 -> Vec (fromInt 3) Float -> Vec (fromInt 4) Float -> Entity 7 -> Vec (fromInt 3) Float -> Vec (fromInt 4) Float -> Entity
8eAmbientLight 8eAmbientLight
9 = \(a :: _) -> case'Entity 9 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\(b :: _) _ _ _ -> _rhs b) a
10 (\_ -> _ :: _)
11 (\(b :: _) -> \_ -> \_ -> \_ -> _rhs b)
12 a
13eDirectedLight 10eDirectedLight
14 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ (b :: _) -> \_ -> \_ -> _rhs b) a 11 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ (b :: _) _ _ -> _rhs b) a
15eLightDir 12eLightDir
16 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ -> \_ (b :: _) -> \_ -> _rhs b) a 13 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ _ (b :: _) _ -> _rhs b) a
17eShaderRGBA 14eShaderRGBA
18 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ -> \_ -> \_ (b :: _) -> _rhs b) a 15 = \(a :: _) -> case'Entity (\_ -> _ :: _) (\_ _ _ (b :: _) -> _rhs b) a
19data WaveType :: Type where 16data WaveType :: Type where
20 WT_Sin :: WaveType 17 WT_Sin :: WaveType
21 WT_Triangle :: WaveType 18 WT_Triangle :: WaveType
@@ -118,58 +115,57 @@ data StageAttrs :: Type where
118saBlend 115saBlend
119 = \(a :: _) -> case'StageAttrs 116 = \(a :: _) -> case'StageAttrs
120 (\_ -> _ :: _) 117 (\_ -> _ :: _)
121 (\(b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 118 (\(b :: _) _ _ _ _ _ _ _ _ _ _ -> _rhs b)
122 b)
123 a 119 a
124saRGBGen 120saRGBGen
125 = \(a :: _) -> case'StageAttrs 121 = \(a :: _) -> case'StageAttrs
126 (\_ -> _ :: _) 122 (\_ -> _ :: _)
127 (\_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs b) 123 (\_ (b :: _) _ _ _ _ _ _ _ _ _ -> _rhs b)
128 a 124 a
129saAlphaGen 125saAlphaGen
130 = \(a :: _) -> case'StageAttrs 126 = \(a :: _) -> case'StageAttrs
131 (\_ -> _ :: _) 127 (\_ -> _ :: _)
132 (\_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs b) 128 (\_ _ (b :: _) _ _ _ _ _ _ _ _ -> _rhs b)
133 a 129 a
134saTCGen 130saTCGen
135 = \(a :: _) -> case'StageAttrs 131 = \(a :: _) -> case'StageAttrs
136 (\_ -> _ :: _) 132 (\_ -> _ :: _)
137 (\_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs b) 133 (\_ _ _ (b :: _) _ _ _ _ _ _ _ -> _rhs b)
138 a 134 a
139saTCMod 135saTCMod
140 = \(a :: _) -> case'StageAttrs 136 = \(a :: _) -> case'StageAttrs
141 (\_ -> _ :: _) 137 (\_ -> _ :: _)
142 (\_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs b) 138 (\_ _ _ _ (b :: _) _ _ _ _ _ _ -> _rhs b)
143 a 139 a
144saTexture 140saTexture
145 = \(a :: _) -> case'StageAttrs 141 = \(a :: _) -> case'StageAttrs
146 (\_ -> _ :: _) 142 (\_ -> _ :: _)
147 (\_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs b) 143 (\_ _ _ _ _ (b :: _) _ _ _ _ _ -> _rhs b)
148 a 144 a
149saDepthWrite 145saDepthWrite
150 = \(a :: _) -> case'StageAttrs 146 = \(a :: _) -> case'StageAttrs
151 (\_ -> _ :: _) 147 (\_ -> _ :: _)
152 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> _rhs b) 148 (\_ _ _ _ _ _ (b :: _) _ _ _ _ -> _rhs b)
153 a 149 a
154saDepthFunc 150saDepthFunc
155 = \(a :: _) -> case'StageAttrs 151 = \(a :: _) -> case'StageAttrs
156 (\_ -> _ :: _) 152 (\_ -> _ :: _)
157 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> _rhs b) 153 (\_ _ _ _ _ _ _ (b :: _) _ _ _ -> _rhs b)
158 a 154 a
159saAlphaFunc 155saAlphaFunc
160 = \(a :: _) -> case'StageAttrs 156 = \(a :: _) -> case'StageAttrs
161 (\_ -> _ :: _) 157 (\_ -> _ :: _)
162 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> _rhs b) 158 (\_ _ _ _ _ _ _ _ (b :: _) _ _ -> _rhs b)
163 a 159 a
164saDepthMaskExplicit 160saDepthMaskExplicit
165 = \(a :: _) -> case'StageAttrs 161 = \(a :: _) -> case'StageAttrs
166 (\_ -> _ :: _) 162 (\_ -> _ :: _)
167 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> _rhs b) 163 (\_ _ _ _ _ _ _ _ _ (b :: _) _ -> _rhs b)
168 a 164 a
169saTextureUniform 165saTextureUniform
170 = \(a :: _) -> case'StageAttrs 166 = \(a :: _) -> case'StageAttrs
171 (\_ -> _ :: _) 167 (\_ -> _ :: _)
172 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> _rhs b) 168 (\_ _ _ _ _ _ _ _ _ _ (b :: _) -> _rhs b)
173 a 169 a
174defaultStageAttrs 170defaultStageAttrs
175 = _rhs 171 = _rhs
@@ -198,75 +194,62 @@ data CommonAttrs :: Type where
198caSkyParms 194caSkyParms
199 = \(a :: _) -> case'CommonAttrs 195 = \(a :: _) -> case'CommonAttrs
200 (\_ -> _ :: _) 196 (\_ -> _ :: _)
201 (\(b 197 (\(b :: _) _ _ _ _ _ _ _ _ _ _ _ -> _rhs b)
202 :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs
203 b)
204 a 198 a
205caFogParms 199caFogParms
206 = \(a :: _) -> case'CommonAttrs 200 = \(a :: _) -> case'CommonAttrs
207 (\_ -> _ :: _) 201 (\_ -> _ :: _)
208 (\_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 202 (\_ (b :: _) _ _ _ _ _ _ _ _ _ _ -> _rhs b)
209 b)
210 a 203 a
211caPortal 204caPortal
212 = \(a :: _) -> case'CommonAttrs 205 = \(a :: _) -> case'CommonAttrs
213 (\_ -> _ :: _) 206 (\_ -> _ :: _)
214 (\_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 207 (\_ _ (b :: _) _ _ _ _ _ _ _ _ _ -> _rhs b)
215 b)
216 a 208 a
217caSort 209caSort
218 = \(a :: _) -> case'CommonAttrs 210 = \(a :: _) -> case'CommonAttrs
219 (\_ -> _ :: _) 211 (\_ -> _ :: _)
220 (\_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 212 (\_ _ _ (b :: _) _ _ _ _ _ _ _ _ -> _rhs b)
221 b)
222 a 213 a
223caEntityMergable 214caEntityMergable
224 = \(a :: _) -> case'CommonAttrs 215 = \(a :: _) -> case'CommonAttrs
225 (\_ -> _ :: _) 216 (\_ -> _ :: _)
226 (\_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 217 (\_ _ _ _ (b :: _) _ _ _ _ _ _ _ -> _rhs b)
227 b)
228 a 218 a
229caFogOnly 219caFogOnly
230 = \(a :: _) -> case'CommonAttrs 220 = \(a :: _) -> case'CommonAttrs
231 (\_ -> _ :: _) 221 (\_ -> _ :: _)
232 (\_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 222 (\_ _ _ _ _ (b :: _) _ _ _ _ _ _ -> _rhs b)
233 b)
234 a 223 a
235caCull 224caCull
236 = \(a :: _) -> case'CommonAttrs 225 = \(a :: _) -> case'CommonAttrs
237 (\_ -> _ :: _) 226 (\_ -> _ :: _)
238 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 227 (\_ _ _ _ _ _ (b :: _) _ _ _ _ _ -> _rhs b)
239 b)
240 a 228 a
241caDeformVertexes 229caDeformVertexes
242 = \(a :: _) -> case'CommonAttrs 230 = \(a :: _) -> case'CommonAttrs
243 (\_ -> _ :: _) 231 (\_ -> _ :: _)
244 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> \_ -> _rhs 232 (\_ _ _ _ _ _ _ (b :: _) _ _ _ _ -> _rhs b)
245 b)
246 a 233 a
247caNoMipMaps 234caNoMipMaps
248 = \(a :: _) -> case'CommonAttrs 235 = \(a :: _) -> case'CommonAttrs
249 (\_ -> _ :: _) 236 (\_ -> _ :: _)
250 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> \_ -> _rhs 237 (\_ _ _ _ _ _ _ _ (b :: _) _ _ _ -> _rhs b)
251 b)
252 a 238 a
253caPolygonOffset 239caPolygonOffset
254 = \(a :: _) -> case'CommonAttrs 240 = \(a :: _) -> case'CommonAttrs
255 (\_ -> _ :: _) 241 (\_ -> _ :: _)
256 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> \_ -> _rhs 242 (\_ _ _ _ _ _ _ _ _ (b :: _) _ _ -> _rhs b)
257 b)
258 a 243 a
259caStages 244caStages
260 = \(a :: _) -> case'CommonAttrs 245 = \(a :: _) -> case'CommonAttrs
261 (\_ -> _ :: _) 246 (\_ -> _ :: _)
262 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> \_ -> _rhs 247 (\_ _ _ _ _ _ _ _ _ _ (b :: _) _ -> _rhs b)
263 b)
264 a 248 a
265caIsSky 249caIsSky
266 = \(a :: _) -> case'CommonAttrs 250 = \(a :: _) -> case'CommonAttrs
267 (\_ -> _ :: _) 251 (\_ -> _ :: _)
268 (\_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ (b :: _) -> _rhs 252 (\_ _ _ _ _ _ _ _ _ _ _ (b :: _) -> _rhs b)
269 b)
270 a 253 a
271defaultCommonAttrs 254defaultCommonAttrs
272 = _rhs 255 = _rhs
diff --git a/testdata/typeclass.out b/testdata/typeclass.out
index f0bd73a3..407b8154 100644
--- a/testdata/typeclass.out
+++ b/testdata/typeclass.out
@@ -15,7 +15,7 @@ not = \(a :: _) -> case'Bool (\_ -> _ :: _) (_rhs True) (_rhs False) a
15 (_rhs ('Empty "no instance of 'Eq on ???"))) 15 (_rhs ('Empty "no instance of 'Eq on ???")))
16 :: Type -> Type 16 :: Type -> Type
17== 17==
18 = (\ @a -> \ @_ -> match'Bool 18 = (\ @a @_ -> match'Bool
19 (\_ -> _) 19 (\_ -> _)
20 (_rhs 20 (_rhs
21 \(b 21 \(b