summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-05-03 16:19:37 +0200
committerPéter Diviánszky <divipp@gmail.com>2016-05-03 16:19:37 +0200
commit28279936966115e65bfc02bd1cab564af947cf63 (patch)
tree93bed62633c427a2df440c6e0ad40350c9aaa8c5 /testdata
parent4742062dea52956de1490ae2e46b25b458ba94a5 (diff)
fix: parens around operators
Diffstat (limited to 'testdata')
-rw-r--r--testdata/Builtins.out6
-rw-r--r--testdata/Internals.out4
-rw-r--r--testdata/Prelude.out110
-rw-r--r--testdata/language-features/basic-values/fixity01.out8
-rw-r--r--testdata/language-features/basic-values/fixity02.out8
-rw-r--r--testdata/language-features/basic-values/operator01.out16
-rw-r--r--testdata/language-features/basic-values/operator02.reject.out4
-rw-r--r--testdata/language-features/basic-values/typesig06.out4
-rw-r--r--testdata/language-features/basic-values/typesig07.out4
-rw-r--r--testdata/language-features/section/section01.out4
-rw-r--r--testdata/typeclass.out16
11 files changed, 92 insertions, 92 deletions
diff --git a/testdata/Builtins.out b/testdata/Builtins.out
index 01a4d378..351b6558 100644
--- a/testdata/Builtins.out
+++ b/testdata/Builtins.out
@@ -650,7 +650,7 @@ head
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
655 (\_ -> _ :: _) 655 (\_ -> _ :: _)
656 (_rhs b) 656 (_rhs b)
@@ -662,7 +662,7 @@ foldr
662 (_rhs b) 662 (_rhs b)
663 (\(d :: _) (e :: _) -> _rhs (a d (foldr a b e))) 663 (\(d :: _) (e :: _) -> _rhs (a d (foldr a b e)))
664 c 664 c
665concat = _rhs (foldr ++ []) 665concat = _rhs (foldr (++) [])
666map 666map
667 = \(a :: _) (b :: _) -> case'List 667 = \(a :: _) (b :: _) -> case'List
668 (\_ -> _ :: _) 668 (\_ -> _ :: _)
@@ -1228,7 +1228,7 @@ PrimNoise2 :: forall (a :: Nat) . VecScalar a Float -> Vec 2 Float
1228PrimNoise3 :: forall (a :: Nat) . VecScalar a Float -> Vec 3 Float 1228PrimNoise3 :: forall (a :: Nat) . VecScalar a Float -> Vec 3 Float
1229PrimNoise4 :: forall (a :: Nat) . VecScalar a Float -> Vec 4 Float 1229PrimNoise4 :: forall (a :: Nat) . VecScalar a Float -> Vec 4 Float
1230head :: forall a . [a] -> a 1230head :: forall a . [a] -> a
1231++ :: forall a . [a] -> [a] -> [a] 1231(++) :: forall a . [a] -> [a] -> [a]
1232foldr :: forall a b . (b -> a -> a) -> a -> [b] -> a 1232foldr :: forall a b . (b -> a -> a) -> a -> [b] -> a
1233concat :: forall a . [[a]] -> [a] 1233concat :: forall a . [[a]] -> [a]
1234map :: forall a b . (a -> b) -> [a] -> [b] 1234map :: forall a b . (a -> b) -> [a] -> [b]
diff --git a/testdata/Internals.out b/testdata/Internals.out
index c76420ae..78586125 100644
--- a/testdata/Internals.out
+++ b/testdata/Internals.out
@@ -155,7 +155,7 @@ negate
155 a 155 a
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)
@@ -294,7 +294,7 @@ fromInt :: forall a . Num a => Int -> a
294compare :: forall a . Num a => a -> a -> Ordering 294compare :: forall a . Num a => a -> a -> Ordering
295negate :: forall a . Num a => a -> a 295negate :: forall a . Num a => a -> a
296'Eq :: Type -> Type 296'Eq :: Type -> Type
297== :: forall a . Eq a => a -> a -> Bool 297(==) :: forall a . Eq a => a -> a -> Bool
298'List :: Type -> Type 298'List :: Type -> Type
299[] :: forall a . [a] 299[] :: forall a . [a]
300(:) :: forall a . a -> [a] -> [a] 300(:) :: forall a . a -> [a] -> [a]
diff --git a/testdata/Prelude.out b/testdata/Prelude.out
index 0d9a2657..971fc3a3 100644
--- a/testdata/Prelude.out
+++ b/testdata/Prelude.out
@@ -7,9 +7,9 @@ infixr 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
12. = _rhs \(a :: _) (b :: _) (c :: _) -> a (b c) 12(.) = _rhs \(a :: _) (b :: _) (c :: _) -> a (b c)
13uncurry 13uncurry
14 = \(a :: _) (b :: _) -> hlistConsCase 14 = \(a :: _) (b :: _) -> hlistConsCase
15 (_ :: _) 15 (_ :: _)
@@ -18,7 +18,7 @@ uncurry
18 (\(e :: _) (f :: _) -> hlistNilCase (_ :: _) (_rhs (a c e)) f) 18 (\(e :: _) (f :: _) -> hlistNilCase (_ :: _) (_rhs (a c e)) f)
19 d) 19 d)
20 b 20 b
21*** 21(***)
22 = \(a :: _) (b :: _) (c :: _) -> hlistConsCase 22 = \(a :: _) (b :: _) (c :: _) -> hlistConsCase
23 (_ :: _) 23 (_ :: _)
24 (\(d :: _) (e :: _) -> hlistConsCase 24 (\(d :: _) (e :: _) -> hlistConsCase
@@ -180,9 +180,9 @@ snd
180 (\(c :: _) (d :: _) -> hlistNilCase (_ :: _) (_rhs c) d) 180 (\(c :: _) (d :: _) -> hlistNilCase (_ :: _) (_rhs c) d)
181 b) 181 b)
182 a 182 a
183||| = \(a :: _) (b :: _) -> case'Bool (\_ -> _ :: _) (_rhs b) (_rhs True) a 183(|||) = \(a :: _) (b :: _) -> case'Bool (\_ -> _ :: _) (_rhs b) (_rhs True) a
184infixr 2 ||| 184infixr 2 |||
185&&& = \(a :: _) (b :: _) -> case'Bool (\_ -> _ :: _) (_rhs False) (_rhs b) a 185(&&&) = \(a :: _) (b :: _) -> case'Bool (\_ -> _ :: _) (_rhs False) (_rhs b) a
186infixr 3 &&& 186infixr 3 &&&
187data RecItem :: Type where 187data RecItem :: Type where
188 RecItem :: String -> Type -> RecItem 188 RecItem :: String -> Type -> RecItem
@@ -346,36 +346,36 @@ infix 7 cross
346infixr 7 *. 346infixr 7 *.
347infixl 7 .* 347infixl 7 .*
348infixl 7 .*. 348infixl 7 .*.
349+ = \(a :: _) (b :: _) -> _rhs (PrimAdd a b) 349(+) = \(a :: _) (b :: _) -> _rhs (PrimAdd a b)
350- = \(a :: _) (b :: _) -> _rhs (PrimSub a b) 350(-) = \(a :: _) (b :: _) -> _rhs (PrimSub a b)
351* = \(a :: _) (b :: _) -> _rhs (PrimMul a b) 351(*) = \(a :: _) (b :: _) -> _rhs (PrimMul a b)
352/ = \(a :: _) (b :: _) -> _rhs (PrimDiv a b) 352(/) = \(a :: _) (b :: _) -> _rhs (PrimDiv a b)
353% = \(a :: _) (b :: _) -> _rhs (PrimMod a b) 353(%) = \(a :: _) (b :: _) -> _rhs (PrimMod a b)
354neg = \(a :: _) -> _rhs (PrimNeg a) 354neg = \(a :: _) -> _rhs (PrimNeg a)
355/= = \(a :: _) (b :: _) -> _rhs (PrimNotEqual a b) 355(/=) = \(a :: _) (b :: _) -> _rhs (PrimNotEqual a b)
356< = \(a :: _) (b :: _) -> _rhs (PrimLessThan a b) 356(<) = \(a :: _) (b :: _) -> _rhs (PrimLessThan a b)
357<= = \(a :: _) (b :: _) -> _rhs (PrimLessThanEqual a b) 357(<=) = \(a :: _) (b :: _) -> _rhs (PrimLessThanEqual a b)
358>= = \(a :: _) (b :: _) -> _rhs (PrimGreaterThanEqual a b) 358(>=) = \(a :: _) (b :: _) -> _rhs (PrimGreaterThanEqual a b)
359> = \(a :: _) (b :: _) -> _rhs (PrimGreaterThan a b) 359(>) = \(a :: _) (b :: _) -> _rhs (PrimGreaterThan a b)
360&& = \(a :: _) (b :: _) -> _rhs (PrimAnd a b) 360(&&) = \(a :: _) (b :: _) -> _rhs (PrimAnd a b)
361|| = \(a :: _) (b :: _) -> _rhs (PrimOr a b) 361(||) = \(a :: _) (b :: _) -> _rhs (PrimOr a b)
362xor = _rhs PrimXor 362xor = _rhs PrimXor
363not = \(a :: _) -> _rhs (PrimNot a) 363not = \(a :: _) -> _rhs (PrimNot a)
364any = \(a :: _) -> _rhs (PrimAny a) 364any = \(a :: _) -> _rhs (PrimAny a)
365all = \(a :: _) -> _rhs (PrimAll a) 365all = \(a :: _) -> _rhs (PrimAll a)
366.*. = \(a :: _) (b :: _) -> _rhs (PrimMulMatMat a b) 366(.*.) = \(a :: _) (b :: _) -> _rhs (PrimMulMatMat a b)
367*. = \(a :: _) (b :: _) -> _rhs (PrimMulMatVec a b) 367(*.) = \(a :: _) (b :: _) -> _rhs (PrimMulMatVec a b)
368.* = \(a :: _) (b :: _) -> _rhs (PrimMulVecMat a b) 368(.*) = \(a :: _) (b :: _) -> _rhs (PrimMulVecMat a b)
369infixl 7 *! 369infixl 7 *!
370infixl 7 /! 370infixl 7 /!
371infixl 7 %! 371infixl 7 %!
372infixl 6 +! 372infixl 6 +!
373infixl 6 -! 373infixl 6 -!
374+! = \(a :: _) (b :: _) -> _rhs (PrimAddS a b) 374(+!) = \(a :: _) (b :: _) -> _rhs (PrimAddS a b)
375-! = \(a :: _) (b :: _) -> _rhs (PrimSubS a b) 375(-!) = \(a :: _) (b :: _) -> _rhs (PrimSubS a b)
376*! = \(a :: _) (b :: _) -> _rhs (PrimMulS a b) 376(*!) = \(a :: _) (b :: _) -> _rhs (PrimMulS a b)
377/! = \(a :: _) (b :: _) -> _rhs (PrimDivS a b) 377(/!) = \(a :: _) (b :: _) -> _rhs (PrimDivS a b)
378%! = \(a :: _) (b :: _) -> _rhs (PrimModS a b) 378(%!) = \(a :: _) (b :: _) -> _rhs (PrimModS a b)
379perspective 379perspective
380 = (\(a :: _) (b :: _) (c :: _) (d :: _) -> _rhs 380 = (\(a :: _) (b :: _) (c :: _) (d :: _) -> _rhs
381 \(e := _rhs (a * tan (c / fromInt 2))) 381 \(e := _rhs (a * tan (c / fromInt 2)))
@@ -459,7 +459,7 @@ fromTo
459 (_rhs []) 459 (_rhs [])
460 (a > b)) 460 (a > b))
461 :: Float -> Float -> [Float] 461 :: Float -> Float -> [Float]
462!! 462(!!)
463 = (\(a :: _) (b :: _) -> case'List 463 = (\(a :: _) (b :: _) -> case'List
464 (\_ -> _ :: _) 464 (\_ -> _ :: _)
465 (_rhs undefined) 465 (_rhs undefined)
@@ -474,11 +474,11 @@ main is not found
474------------ trace 474------------ trace
475const :: forall a b . a -> b -> a 475const :: forall a b . a -> b -> a
476otherwise :: Bool 476otherwise :: Bool
477& :: forall a b . a -> (a -> b) -> b 477(&) :: forall a b . a -> (a -> b) -> b
478$ :: forall a b . (a -> b) -> a -> b 478($) :: forall a b . (a -> b) -> a -> b
479. :: forall a b c . (b -> c) -> (a -> b) -> a -> c 479(.) :: forall a b c . (b -> c) -> (a -> b) -> a -> c
480uncurry :: forall a b c . (a -> c -> b) -> (a, c) -> b 480uncurry :: forall a b c . (a -> c -> b) -> (a, c) -> b
481*** :: forall a b c d . (a -> c) -> (b -> d) -> (a, b) -> (c, d) 481(***) :: forall a b c d . (a -> c) -> (b -> d) -> (a, b) -> (c, d)
482pi :: Float 482pi :: Float
483zip :: forall a b . [a] -> [b] -> [(a, b)] 483zip :: forall a b . [a] -> [b] -> [(a, b)]
484unzip :: forall a b . [(a, b)] -> ([a], [b]) 484unzip :: forall a b . [(a, b)] -> ([a], [b])
@@ -493,8 +493,8 @@ sortBy :: forall a . (a -> a -> Ordering) -> [a] -> [a]
493iterate :: forall a . (a -> a) -> a -> [a] 493iterate :: forall a . (a -> a) -> a -> [a]
494fst :: forall a b . (a, b) -> a 494fst :: forall a b . (a, b) -> a
495snd :: forall a b . (a, b) -> b 495snd :: forall a b . (a, b) -> b
496||| :: Bool -> Bool -> Bool 496(|||) :: Bool -> Bool -> Bool
497&&& :: Bool -> Bool -> Bool 497(&&&) :: Bool -> Bool -> Bool
498'RecItem :: Type 498'RecItem :: Type
499RecItem :: String -> Type -> RecItem 499RecItem :: String -> Type -> RecItem
500case'RecItem 500case'RecItem
@@ -635,45 +635,45 @@ floatBitsToInt :: forall (a :: Nat) . VecScalar a Float -> VecScalar a Int
635floatBitsToWord :: forall (a :: Nat) . VecScalar a Float -> VecScalar a Word 635floatBitsToWord :: forall (a :: Nat) . VecScalar a Float -> VecScalar a Word
636intBitsToFloat :: forall (a :: Nat) . VecScalar a Int -> VecScalar a Float 636intBitsToFloat :: forall (a :: Nat) . VecScalar a Int -> VecScalar a Float
637wordBitsToFloat :: forall (a :: Nat) . VecScalar a Word -> VecScalar a Float 637wordBitsToFloat :: forall (a :: Nat) . VecScalar a Word -> VecScalar a Float
638+ :: forall a . Num (MatVecScalarElem a) => a -> a -> a 638(+) :: forall a . Num (MatVecScalarElem a) => a -> a -> a
639- :: forall a . Num (MatVecScalarElem a) => a -> a -> a 639(-) :: forall a . Num (MatVecScalarElem a) => a -> a -> a
640* :: forall a . Num (MatVecScalarElem a) => a -> a -> a 640(*) :: forall a . Num (MatVecScalarElem a) => a -> a -> a
641/ 641(/)
642 :: forall a (b :: Nat) 642 :: forall a (b :: Nat)
643 . Num a => VecScalar b a -> VecScalar b a -> VecScalar b a 643 . Num a => VecScalar b a -> VecScalar b a -> VecScalar b a
644% 644(%)
645 :: forall a (b :: Nat) 645 :: forall a (b :: Nat)
646 . Num a => VecScalar b a -> VecScalar b a -> VecScalar b a 646 . Num a => VecScalar b a -> VecScalar b a -> VecScalar b a
647neg :: forall a . Signed (MatVecScalarElem a) => a -> a 647neg :: forall a . Signed (MatVecScalarElem a) => a -> a
648/= :: forall a . a -> a -> Bool 648(/=) :: forall a . a -> a -> Bool
649< 649(<)
650 :: forall (a :: Nat) b 650 :: forall (a :: Nat) b
651 . Num b => VecScalar a b -> VecScalar a b -> VecScalar a Bool 651 . Num b => VecScalar a b -> VecScalar a b -> VecScalar a Bool
652<= 652(<=)
653 :: forall (a :: Nat) b 653 :: forall (a :: Nat) b
654 . Num b => VecScalar a b -> VecScalar a b -> VecScalar a Bool 654 . Num b => VecScalar a b -> VecScalar a b -> VecScalar a Bool
655>= 655(>=)
656 :: forall (a :: Nat) b 656 :: forall (a :: Nat) b
657 . Num b => VecScalar a b -> VecScalar a b -> VecScalar a Bool 657 . Num b => VecScalar a b -> VecScalar a b -> VecScalar a Bool
658> 658(>)
659 :: forall (a :: Nat) b 659 :: forall (a :: Nat) b
660 . Num b => VecScalar a b -> VecScalar a b -> VecScalar a Bool 660 . Num b => VecScalar a b -> VecScalar a b -> VecScalar a Bool
661&& :: Bool -> Bool -> Bool 661(&&) :: Bool -> Bool -> Bool
662|| :: Bool -> Bool -> Bool 662(||) :: Bool -> Bool -> Bool
663xor :: Bool -> Bool -> Bool 663xor :: Bool -> Bool -> Bool
664not :: forall (a :: Nat) . VecScalar a Bool -> VecScalar a Bool 664not :: forall (a :: Nat) . VecScalar a Bool -> VecScalar a Bool
665any :: forall (a :: Nat) . VecScalar a Bool -> Bool 665any :: forall (a :: Nat) . VecScalar a Bool -> Bool
666all :: forall (a :: Nat) . VecScalar a Bool -> Bool 666all :: forall (a :: Nat) . VecScalar a Bool -> Bool
667.*. 667(.*.)
668 :: forall (a :: Nat) (b :: Nat) c (d :: Nat) 668 :: forall (a :: Nat) (b :: Nat) c (d :: Nat)
669 . Mat a b c -> Mat b d c -> Mat a d c 669 . Mat a b c -> Mat b d c -> Mat a d c
670*. :: forall (a :: Nat) (b :: Nat) c . Mat a b c -> VecS c b -> Vec a c 670(*.) :: forall (a :: Nat) (b :: Nat) c . Mat a b c -> VecS c b -> Vec a c
671.* :: forall (a :: Nat) b (c :: Nat) . VecS b a -> Mat a c b -> Vec c b 671(.*) :: forall (a :: Nat) b (c :: Nat) . VecS b a -> Mat a c b -> Vec c b
672+! :: forall a . Num (MatVecScalarElem a) => a -> MatVecScalarElem a -> a 672(+!) :: forall a . Num (MatVecScalarElem a) => a -> MatVecScalarElem a -> a
673-! :: forall a . Num (MatVecScalarElem a) => a -> MatVecScalarElem a -> a 673(-!) :: forall a . Num (MatVecScalarElem a) => a -> MatVecScalarElem a -> a
674*! :: forall a . Num (MatVecScalarElem a) => a -> MatVecScalarElem a -> a 674(*!) :: forall a . Num (MatVecScalarElem a) => a -> MatVecScalarElem a -> a
675/! :: forall a (b :: Nat) . Num a => VecScalar b a -> a -> VecScalar b a 675(/!) :: forall a (b :: Nat) . Num a => VecScalar b a -> a -> VecScalar b a
676%! :: forall a (b :: Nat) . Num a => VecScalar b a -> a -> VecScalar b a 676(%!) :: forall a (b :: Nat) . Num a => VecScalar b a -> a -> VecScalar b a
677perspective :: Float -> Float -> Float -> Float -> Mat 4 4 Float 677perspective :: Float -> Float -> Float -> Float -> Mat 4 4 Float
678rotMatrixZ :: VecScalar 1 Float -> Mat 4 4 Float 678rotMatrixZ :: VecScalar 1 Float -> Mat 4 4 Float
679rotMatrixY :: VecScalar 1 Float -> Mat 4 4 Float 679rotMatrixY :: VecScalar 1 Float -> Mat 4 4 Float
@@ -683,7 +683,7 @@ translateBefore4 :: Vec 3 Float -> Mat 4 4 Float
683lookat :: Vec 3 Float -> Vec 3 Float -> Vec 3 Float -> Mat 4 4 Float 683lookat :: Vec 3 Float -> Vec 3 Float -> Vec 3 Float -> Mat 4 4 Float
684scale :: Float -> VecS Float 4 -> VecS Float 4 684scale :: Float -> VecS Float 4 -> VecS Float 4
685fromTo :: Float -> Float -> [Float] 685fromTo :: Float -> Float -> [Float]
686!! :: forall a . [a] -> Int -> a 686(!!) :: forall a . [a] -> Int -> a
687------------ tooltips 687------------ tooltips
688testdata/Prelude.lc 16:1-16:6 688testdata/Prelude.lc 16:1-16:6
689 forall a b . a -> b -> a 689 forall a b . a -> b -> a
@@ -3550,4 +3550,4 @@ Uncovered pattern(s) at testdata/Prelude.lc:388:10:
3550(x : _) !! 0 = x 3550(x : _) !! 0 = x
3551(_ : xs) !! n = xs !! (n-1) 3551(_ : xs) !! n = xs !! (n-1)
3552Missing case(s): 3552Missing case(s):
3553 !! [] _ \ No newline at end of file 3553 [] !! _ \ No newline at end of file
diff --git a/testdata/language-features/basic-values/fixity01.out b/testdata/language-features/basic-values/fixity01.out
index 82d3c5a6..bcc2a126 100644
--- a/testdata/language-features/basic-values/fixity01.out
+++ b/testdata/language-features/basic-values/fixity01.out
@@ -1,8 +1,8 @@
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 <<<<
8infixr 6 >>>> 8infixr 6 >>>>
@@ -11,8 +11,8 @@ main is not found
11------------ trace 11------------ trace
12funL :: forall a b . a -> b -> a 12funL :: forall a b . a -> b -> a
13funR :: forall a b . a -> b -> a 13funR :: forall a b . a -> b -> a
14<<<< :: forall a b . a -> b -> a 14(<<<<) :: forall a b . a -> b -> a
15>>>> :: forall a b . a -> b -> b 15(>>>>) :: forall a b . a -> b -> b
16------------ tooltips 16------------ tooltips
17testdata/language-features/basic-values/fixity01.lc 1:1-1:5 17testdata/language-features/basic-values/fixity01.lc 1:1-1:5
18 forall a b . a -> b -> a 18 forall a b . a -> b -> a
diff --git a/testdata/language-features/basic-values/fixity02.out b/testdata/language-features/basic-values/fixity02.out
index baf54313..acdd5309 100644
--- a/testdata/language-features/basic-values/fixity02.out
+++ b/testdata/language-features/basic-values/fixity02.out
@@ -1,8 +1,8 @@
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 <@
8infixr 6 @> 8infixr 6 @>
@@ -27,8 +27,8 @@ main is not found
27------------ trace 27------------ trace
28funL :: forall a b . a -> b -> a 28funL :: forall a b . a -> b -> a
29funR :: forall a b . a -> b -> b 29funR :: forall a b . a -> b -> b
30<@ :: forall a b . a -> b -> a 30(<@) :: forall a b . a -> b -> a
31@> :: forall a b . a -> b -> b 31(@>) :: forall a b . a -> b -> b
32value1 :: Float 32value1 :: Float
33value2 :: Float 33value2 :: Float
34value3 :: Float 34value3 :: Float
diff --git a/testdata/language-features/basic-values/operator01.out b/testdata/language-features/basic-values/operator01.out
index 96aefcdc..b6848082 100644
--- a/testdata/language-features/basic-values/operator01.out
+++ b/testdata/language-features/basic-values/operator01.out
@@ -1,14 +1,14 @@
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 -> ()
9$$# :: forall a b . a -> b -> () 9($$#) :: forall a b . a -> b -> ()
10$$$# :: forall a b . a -> b -> () 10($$$#) :: forall a b . a -> b -> ()
11$$$ :: forall a b . a -> b -> () 11($$$) :: forall a b . a -> b -> ()
12------------ tooltips 12------------ tooltips
13testdata/language-features/basic-values/operator01.lc 1:3-1:6 13testdata/language-features/basic-values/operator01.lc 1:3-1:6
14 forall a b . a -> b -> () 14 forall a b . a -> b -> ()
diff --git a/testdata/language-features/basic-values/operator02.reject.out b/testdata/language-features/basic-values/operator02.reject.out
index 5d30716a..38f5992c 100644
--- a/testdata/language-features/basic-values/operator02.reject.out
+++ b/testdata/language-features/basic-values/operator02.reject.out
@@ -5,9 +5,9 @@ and at testdata/language-features/basic-values/operator02.reject.lc:1:3:
5a #$# b = () 5a #$# b = ()
6 ^^^ 6 ^^^
7------------ trace 7------------ trace
8#$# :: forall a b . a -> b -> () 8(#$#) :: forall a b . a -> b -> ()
9fun :: forall a . a -> () 9fun :: forall a . a -> ()
10#$# :: forall a b . a -> b -> () 10(#$#) :: forall a b . a -> b -> ()
11!already defined #$# at testdata/language-features/basic-values/operator02.reject.lc:3:3: 11!already defined #$# at testdata/language-features/basic-values/operator02.reject.lc:3:3:
12a #$# b = () 12a #$# b = ()
13 ^^^ 13 ^^^
diff --git a/testdata/language-features/basic-values/typesig06.out b/testdata/language-features/basic-values/typesig06.out
index bf0f6dea..664b9dec 100644
--- a/testdata/language-features/basic-values/typesig06.out
+++ b/testdata/language-features/basic-values/typesig06.out
@@ -1,12 +1,12 @@
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
7------------ trace 7------------ trace
8funL :: forall a b . a -> b -> a 8funL :: forall a b . a -> b -> a
9<@ :: forall a b . a -> b -> a 9(<@) :: forall a b . a -> b -> a
10value1 :: String 10value1 :: String
11value2 :: String 11value2 :: String
12------------ tooltips 12------------ tooltips
diff --git a/testdata/language-features/basic-values/typesig07.out b/testdata/language-features/basic-values/typesig07.out
index c589424f..172e6819 100644
--- a/testdata/language-features/basic-values/typesig07.out
+++ b/testdata/language-features/basic-values/typesig07.out
@@ -3,7 +3,7 @@ value1 = _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
@@ -11,7 +11,7 @@ value1 :: Int
11value2 :: Int 11value2 :: Int
12value3 :: Int 12value3 :: Int
13value4 :: () -> () -> () 13value4 :: () -> () -> ()
14@@@ :: () -> () -> () 14(@@@) :: () -> () -> ()
15value6 :: () -> () -> () 15value6 :: () -> () -> ()
16------------ tooltips 16------------ tooltips
17testdata/language-features/basic-values/typesig07.lc 1:27-1:30 17testdata/language-features/basic-values/typesig07.lc 1:27-1:30
diff --git a/testdata/language-features/section/section01.out b/testdata/language-features/section/section01.out
index 9af1bf31..dd5e5093 100644
--- a/testdata/language-features/section/section01.out
+++ b/testdata/language-features/section/section01.out
@@ -1,10 +1,10 @@
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
6------------ trace 6------------ trace
7!@! :: forall a b . a -> b -> () 7(!@!) :: forall a b . a -> b -> ()
8value1 :: forall a b . a -> b -> () 8value1 :: forall a b . a -> b -> ()
9value2 :: forall a b . a -> b -> () 9value2 :: forall a b . a -> b -> ()
10------------ tooltips 10------------ tooltips
diff --git a/testdata/typeclass.out b/testdata/typeclass.out
index 407b8154..82487126 100644
--- a/testdata/typeclass.out
+++ b/testdata/typeclass.out
@@ -5,8 +5,8 @@ infix 4 <
5infixr 3 && 5infixr 3 &&
6infixr 2 || 6infixr 2 ||
7not = \(a :: _) -> case'Bool (\_ -> _ :: _) (_rhs True) (_rhs False) a 7not = \(a :: _) -> case'Bool (\_ -> _ :: _) (_rhs True) (_rhs False) a
8&& = \(a :: _) (b :: _) -> case'Bool (\_ -> _ :: _) (_rhs False) (_rhs b) a 8(&&) = \(a :: _) (b :: _) -> case'Bool (\_ -> _ :: _) (_rhs False) (_rhs b) a
9|| = \(a :: _) (b :: _) -> case'Bool (\_ -> _ :: _) (_rhs b) (_rhs True) a 9(||) = \(a :: _) (b :: _) -> case'Bool (\_ -> _ :: _) (_rhs b) (_rhs True) a
10'Eq 10'Eq
11 = (\(a :: _) -> match'Bool 11 = (\(a :: _) -> match'Bool
12 (\_ -> _) 12 (\_ -> _)
@@ -14,7 +14,7 @@ not = \(a :: _) -> case'Bool (\_ -> _ :: _) (_rhs True) (_rhs False) a
14 a 14 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
@@ -27,15 +27,15 @@ not = \(a :: _) -> case'Bool (\_ -> _ :: _) (_rhs True) (_rhs False) a
27 a 27 a
28 (_rhs undefined)) 28 (_rhs undefined))
29 :: forall e . Eq e => e -> e -> Bool 29 :: forall e . Eq e => e -> e -> Bool
30/= = \(a :: _) (b :: _) -> _rhs (not (a == b)) 30(/=) = \(a :: _) (b :: _) -> _rhs (not (a == b))
31main is not found 31main is not found
32------------ trace 32------------ trace
33not :: Bool -> Bool 33not :: Bool -> Bool
34&& :: Bool -> Bool -> Bool 34(&&) :: Bool -> Bool -> Bool
35|| :: Bool -> Bool -> Bool 35(||) :: Bool -> Bool -> Bool
36'Eq :: Type -> Type 36'Eq :: Type -> Type
37== :: forall a . Eq a => a -> a -> Bool 37(==) :: forall a . Eq a => a -> a -> Bool
38/= :: forall a . Eq a => a -> a -> Bool 38(/=) :: forall a . Eq a => a -> a -> Bool
39------------ tooltips 39------------ tooltips
40testdata/typeclass.lc 8:1-8:4 40testdata/typeclass.lc 8:1-8:4
41 Bool -> Bool 41 Bool -> Bool