summaryrefslogtreecommitdiff
path: root/testdata/language-features/basic-values
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-05-01 19:13:34 +0200
committerPéter Diviánszky <divipp@gmail.com>2016-05-01 19:13:34 +0200
commit90e336391673ac1cf9ff582e98e35faf89a8f09d (patch)
tree0b7a14dbfc5734c07c2ae4ed34cb679fecd10d3f /testdata/language-features/basic-values
parent1a7544763729938e7009ead1e375e9bbf413afb0 (diff)
improve pretty print layout & show desugared source code in .out files
Diffstat (limited to 'testdata/language-features/basic-values')
-rw-r--r--testdata/language-features/basic-values/bool01.out3
-rw-r--r--testdata/language-features/basic-values/case01.out7
-rw-r--r--testdata/language-features/basic-values/case02.out12
-rw-r--r--testdata/language-features/basic-values/case05.out4
-rw-r--r--testdata/language-features/basic-values/case06.out4
-rw-r--r--testdata/language-features/basic-values/data01.out24
-rw-r--r--testdata/language-features/basic-values/def01.out4
-rw-r--r--testdata/language-features/basic-values/def03.out7
-rw-r--r--testdata/language-features/basic-values/def04.out13
-rw-r--r--testdata/language-features/basic-values/deforder01.out3
-rw-r--r--testdata/language-features/basic-values/deforder02.out3
-rw-r--r--testdata/language-features/basic-values/deforder03.out2
-rw-r--r--testdata/language-features/basic-values/deforder04.out2
-rw-r--r--testdata/language-features/basic-values/deforder05.out2
-rw-r--r--testdata/language-features/basic-values/deforder06.out2
-rw-r--r--testdata/language-features/basic-values/fixity01.out9
-rw-r--r--testdata/language-features/basic-values/fixity02.out25
-rw-r--r--testdata/language-features/basic-values/if01.out3
-rw-r--r--testdata/language-features/basic-values/indentation01.out3
-rw-r--r--testdata/language-features/basic-values/indentation02.out3
-rw-r--r--testdata/language-features/basic-values/infix01.out3
-rw-r--r--testdata/language-features/basic-values/infix02.out3
-rw-r--r--testdata/language-features/basic-values/infix03.out12
-rw-r--r--testdata/language-features/basic-values/lambda01.out8
-rw-r--r--testdata/language-features/basic-values/lambda03.out3
-rw-r--r--testdata/language-features/basic-values/let01.out6
-rw-r--r--testdata/language-features/basic-values/let02.out8
-rw-r--r--testdata/language-features/basic-values/literal01.out9
-rw-r--r--testdata/language-features/basic-values/operator01.out5
-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/shadowing01.out12
-rw-r--r--testdata/language-features/basic-values/shadowing02.out16
-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/tuple01.out2
-rw-r--r--testdata/language-features/basic-values/tuple02.out6
-rw-r--r--testdata/language-features/basic-values/typesig01.out3
-rw-r--r--testdata/language-features/basic-values/typesig02.out3
-rw-r--r--testdata/language-features/basic-values/typesig03.out7
-rw-r--r--testdata/language-features/basic-values/typesig04.out7
-rw-r--r--testdata/language-features/basic-values/typesig05.out7
-rw-r--r--testdata/language-features/basic-values/typesig06.out5
-rw-r--r--testdata/language-features/basic-values/typesig07.out7
-rw-r--r--testdata/language-features/basic-values/typesyn01.out2
-rw-r--r--testdata/language-features/basic-values/typesyn02.out5
-rw-r--r--testdata/language-features/basic-values/where01.out12
-rw-r--r--testdata/language-features/basic-values/where04.out4
-rw-r--r--testdata/language-features/basic-values/where05.out33
-rw-r--r--testdata/language-features/basic-values/wildcard01.out2
50 files changed, 328 insertions, 5 deletions
diff --git a/testdata/language-features/basic-values/bool01.out b/testdata/language-features/basic-values/bool01.out
index 3fd03cdf..125ed17a 100644
--- a/testdata/language-features/basic-values/bool01.out
+++ b/testdata/language-features/basic-values/bool01.out
@@ -1,3 +1,6 @@
1------------ desugared source code
2value1 = _rhs True
3value2 = _rhs False
1main is not found 4main is not found
2------------ trace 5------------ trace
3value1 :: Bool 6value1 :: Bool
diff --git a/testdata/language-features/basic-values/case01.out b/testdata/language-features/basic-values/case01.out
index 1cbce892..1fc0f7f0 100644
--- a/testdata/language-features/basic-values/case01.out
+++ b/testdata/language-features/basic-values/case01.out
@@ -1,3 +1,10 @@
1------------ desugared source code
2value1 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil)
3value2 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil)
4value3 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil)
5value4 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil)
6value5 = _rhs ((\(a :: _) -> hlistNilCase (_ :: _) HNil a) HNil)
7value6 = _rhs ((\_ -> HNil) HNil)
1main is not found 8main is not found
2------------ trace 9------------ trace
3value1 :: () 10value1 :: ()
diff --git a/testdata/language-features/basic-values/case02.out b/testdata/language-features/basic-values/case02.out
index 974b56da..146ad059 100644
--- a/testdata/language-features/basic-values/case02.out
+++ b/testdata/language-features/basic-values/case02.out
@@ -1,3 +1,15 @@
1------------ desugared source code
2value1
3 = _rhs
4 ((\(a :: _) -> 'BoolCase \_ -> _ :: _ HNil HNil (fromInt 1 == a)) (fromInt 1))
5value2
6 = _rhs
7 ((\(a :: _) -> 'BoolCase
8 \_ -> _ :: _
9 ('BoolCase \_ -> _ :: _ "_" "2" (fromInt 2 == a))
10 "1"
11 (fromInt 1 == a))
12 (fromInt 2))
1main is not found 13main is not found
2------------ trace 14------------ trace
3value1 :: forall a . (Eq a, Num a) => () 15value1 :: forall a . (Eq a, Num a) => ()
diff --git a/testdata/language-features/basic-values/case05.out b/testdata/language-features/basic-values/case05.out
index e77a1024..7b58c84f 100644
--- a/testdata/language-features/basic-values/case05.out
+++ b/testdata/language-features/basic-values/case05.out
@@ -1,3 +1,7 @@
1------------ desugared source code
2value
3 = \(a :: _) -> _rhs
4 ((\(b :: _) -> 'BoolCase \_ -> _ :: _ undefined '1' (fromInt 1 == b)) a)
1main is not found 5main is not found
2------------ trace 6------------ trace
3value :: forall a . (Eq a, Num a) => a -> Char 7value :: forall a . (Eq a, Num a) => a -> Char
diff --git a/testdata/language-features/basic-values/case06.out b/testdata/language-features/basic-values/case06.out
index d2524007..92b5e196 100644
--- a/testdata/language-features/basic-values/case06.out
+++ b/testdata/language-features/basic-values/case06.out
@@ -1,3 +1,7 @@
1------------ desugared source code
2value
3 = \(a :: _) -> _rhs
4 ((\(b :: _) -> 'BoolCase \_ -> _ :: _ '_' '1' (fromInt 1 == b)) a)
1main is not found 5main is not found
2------------ trace 6------------ trace
3value :: forall a . (Eq a, Num a) => a -> Char 7value :: forall a . (Eq a, Num a) => a -> Char
diff --git a/testdata/language-features/basic-values/data01.out b/testdata/language-features/basic-values/data01.out
index 294c3b86..aa1f0c31 100644
--- a/testdata/language-features/basic-values/data01.out
+++ b/testdata/language-features/basic-values/data01.out
@@ -1,22 +1,40 @@
1------------ desugared source code
2data A :: Type where
3 B :: A
4 C :: A
5 D :: A
6data E :: Type where
7 F :: E
8 G :: HList 'Nil -> E
9 H :: E
10data D1 :: Type where
11 C1 :: D1
12 C2 :: HList 'Nil -> D1
13 C3 :: D1
1main is not found 14main is not found
2------------ trace 15------------ trace
3'A :: Type 16'A :: Type
4B :: A 17B :: A
5C :: A 18C :: A
6D :: A 19D :: A
7'ACase :: forall (a :: A -> Type) -> a 'B -> a 'C -> a 'D -> forall (b :: A) -> a b 20'ACase
21 :: forall (a :: A -> Type) -> a 'B -> a 'C -> a 'D -> forall (b :: A) -> a b
8match'A :: forall (a :: Type -> Type) -> a A -> forall b -> a b -> a b 22match'A :: forall (a :: Type -> Type) -> a A -> forall b -> a b -> a b
9'E :: Type 23'E :: Type
10F :: E 24F :: E
11G :: () -> E 25G :: () -> E
12H :: E 26H :: E
13'ECase :: forall (a :: E -> Type) -> a 'F -> (forall (b :: ()) -> a ('G b)) -> a 'H -> forall (c :: E) -> a c 27'ECase
28 :: forall (a :: E -> Type)
29 -> a 'F -> (forall (b :: ()) -> a ('G b)) -> a 'H -> forall (c :: E) -> a c
14match'E :: forall (a :: Type -> Type) -> a E -> forall b -> a b -> a b 30match'E :: forall (a :: Type -> Type) -> a E -> forall b -> a b -> a b
15'D1 :: Type 31'D1 :: Type
16C1 :: D1 32C1 :: D1
17C2 :: () -> D1 33C2 :: () -> D1
18C3 :: D1 34C3 :: D1
19'D1Case :: forall (a :: D1 -> Type) -> a 'C1 -> (forall (b :: ()) -> a ('C2 b)) -> a 'C3 -> forall (c :: D1) -> a c 35'D1Case
36 :: forall (a :: D1 -> Type)
37 -> a 'C1 -> (forall (b :: ()) -> a ('C2 b)) -> a 'C3 -> forall (c :: D1) -> a c
20match'D1 :: forall (a :: Type -> Type) -> a D1 -> forall b -> a b -> a b 38match'D1 :: forall (a :: Type -> Type) -> a D1 -> forall b -> a b -> a b
21------------ tooltips 39------------ tooltips
22testdata/language-features/basic-values/data01.lc 1:6-1:7 Type 40testdata/language-features/basic-values/data01.lc 1:6-1:7 Type
diff --git a/testdata/language-features/basic-values/def01.out b/testdata/language-features/basic-values/def01.out
index 712cd657..7519f75e 100644
--- a/testdata/language-features/basic-values/def01.out
+++ b/testdata/language-features/basic-values/def01.out
@@ -1,3 +1,7 @@
1------------ desugared source code
2unit = _rhs HNil
3fun1 = \_ -> _rhs (fromInt 1)
4fun2 = \_ -> \_ -> \_ -> \_ -> \_ -> _rhs 'c'
1main is not found 5main is not found
2------------ trace 6------------ trace
3unit :: () 7unit :: ()
diff --git a/testdata/language-features/basic-values/def03.out b/testdata/language-features/basic-values/def03.out
index 38bae81f..1dca3720 100644
--- a/testdata/language-features/basic-values/def03.out
+++ b/testdata/language-features/basic-values/def03.out
@@ -1,3 +1,10 @@
1------------ desugared source code
2fun
3 = \(a :: _) -> 'BoolCase
4 \_ -> _ :: _
5 ('BoolCase \_ -> _ :: _ (_rhs undefined) (_rhs '2') (fromInt 2 == a))
6 (_rhs '1')
7 (fromInt 1 == a)
1main is not found 8main is not found
2------------ trace 9------------ trace
3fun :: forall a . (Eq a, Num a, Eq a, Num a) => a -> Char 10fun :: forall a . (Eq a, Num a, Eq a, Num a) => a -> Char
diff --git a/testdata/language-features/basic-values/def04.out b/testdata/language-features/basic-values/def04.out
index 977601b2..8c4b3f46 100644
--- a/testdata/language-features/basic-values/def04.out
+++ b/testdata/language-features/basic-values/def04.out
@@ -1,3 +1,16 @@
1------------ desugared source code
2fun
3 = \(a :: _) -> 'BoolCase
4 \_ -> _ :: _
5 ('BoolCase \_ -> _ :: _ (_rhs '_') (_rhs '2') (fromInt 2 == a))
6 (_rhs '1')
7 (fromInt 1 == a)
8fun2
9 = \(a :: _) -> \_ -> 'BoolCase
10 \_ -> _ :: _
11 ('BoolCase \_ -> _ :: _ (_rhs '_') (_rhs '2') (fromInt 2 == a))
12 (_rhs '1')
13 (fromInt 1 == a)
1main is not found 14main is not found
2------------ trace 15------------ trace
3fun :: forall a . (Eq a, Num a, Eq a, Num a) => a -> Char 16fun :: forall a . (Eq a, Num a, Eq a, Num a) => a -> Char
diff --git a/testdata/language-features/basic-values/deforder01.out b/testdata/language-features/basic-values/deforder01.out
index 325f4361..be9385d0 100644
--- a/testdata/language-features/basic-values/deforder01.out
+++ b/testdata/language-features/basic-values/deforder01.out
@@ -1,3 +1,6 @@
1------------ desugared source code
2x = _rhs '1'
3y = _rhs x
1main is not found 4main is not found
2------------ trace 5------------ trace
3x :: Char 6x :: Char
diff --git a/testdata/language-features/basic-values/deforder02.out b/testdata/language-features/basic-values/deforder02.out
index 9f79a9bd..b8990ab3 100644
--- a/testdata/language-features/basic-values/deforder02.out
+++ b/testdata/language-features/basic-values/deforder02.out
@@ -1,3 +1,6 @@
1------------ desugared source code
2x = _rhs '1'
3y = _rhs x
1main is not found 4main is not found
2------------ trace 5------------ trace
3x :: Char 6x :: Char
diff --git a/testdata/language-features/basic-values/deforder03.out b/testdata/language-features/basic-values/deforder03.out
index d98597f6..e6f8794d 100644
--- a/testdata/language-features/basic-values/deforder03.out
+++ b/testdata/language-features/basic-values/deforder03.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2value = _rhs \(a := _rhs HNil) (b := _rhs a) -> '1'
1main is not found 3main is not found
2------------ trace 4------------ trace
3value :: Char 5value :: Char
diff --git a/testdata/language-features/basic-values/deforder04.out b/testdata/language-features/basic-values/deforder04.out
index 5d6e1d80..ec663000 100644
--- a/testdata/language-features/basic-values/deforder04.out
+++ b/testdata/language-features/basic-values/deforder04.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2value = _rhs \(a := _rhs HNil) (b := _rhs a) -> '1'
1main is not found 3main is not found
2------------ trace 4------------ trace
3value :: Char 5value :: Char
diff --git a/testdata/language-features/basic-values/deforder05.out b/testdata/language-features/basic-values/deforder05.out
index 73897e36..58a3f0fc 100644
--- a/testdata/language-features/basic-values/deforder05.out
+++ b/testdata/language-features/basic-values/deforder05.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2value = _rhs \(a := _rhs HNil) (b := _rhs a) -> '1'
1main is not found 3main is not found
2------------ trace 4------------ trace
3value :: Char 5value :: Char
diff --git a/testdata/language-features/basic-values/deforder06.out b/testdata/language-features/basic-values/deforder06.out
index 794432d6..48f45d42 100644
--- a/testdata/language-features/basic-values/deforder06.out
+++ b/testdata/language-features/basic-values/deforder06.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2value = _rhs \(a := _rhs HNil) (b := _rhs a) -> '1'
1main is not found 3main is not found
2------------ trace 4------------ trace
3value :: Char 5value :: Char
diff --git a/testdata/language-features/basic-values/fixity01.out b/testdata/language-features/basic-values/fixity01.out
index f30cd6fa..2274b6a6 100644
--- a/testdata/language-features/basic-values/fixity01.out
+++ b/testdata/language-features/basic-values/fixity01.out
@@ -1,3 +1,12 @@
1------------ desugared source code
2funL = \(a :: _) -> \_ -> _rhs a
3funR = \(a :: _) -> \_ -> _rhs a
4<<<< = \(a :: _) -> \_ -> _rhs a
5>>>> = \_ (a :: _) -> _rhs a
6infixr 7 funL
7infixr 7 <<<<
8infixr 6 >>>>
9infixr 6 funR
1main is not found 10main is not found
2------------ trace 11------------ trace
3funL :: forall a b . a -> b -> a 12funL :: 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 e16184f0..38f4bea0 100644
--- a/testdata/language-features/basic-values/fixity02.out
+++ b/testdata/language-features/basic-values/fixity02.out
@@ -1,3 +1,28 @@
1------------ desugared source code
2funL = \(a :: _) -> \_ -> _rhs a
3funR = \_ (a :: _) -> _rhs a
4<@ = \(a :: _) -> \_ -> _rhs a
5@> = \_ (a :: _) -> _rhs a
6infixr 7 funL
7infixr 7 <@
8infixr 6 @>
9infixr 6 funR
10value1 = _rhs (HNil @> 'c' @> "hi" @> 1.2 :: Float)
11value2 = _rhs (HNil @> 'c' <@ "hi" @> 1.2 :: Float)
12value3 = _rhs (HNil <@ 'c' @> "hi" @> 1.2 :: Float)
13value4 = _rhs (HNil <@ 'c' <@ "hi" @> 1.2 :: Float)
14value5 = _rhs (HNil @> 'c' @> "hi" <@ 1.2 :: String)
15value6 = _rhs (HNil @> 'c' <@ "hi" <@ 1.2 :: Char)
16value7 = _rhs (HNil <@ 'c' @> "hi" <@ 1.2 :: String)
17value8 = _rhs (HNil <@ 'c' <@ "hi" <@ 1.2 :: HList 'Nil)
18funValue1 = _rhs (HNil `funR` 'c' `funR` "hi" `funR` 1.2 :: Float)
19funValue2 = _rhs (HNil `funR` 'c' `funL` "hi" `funR` 1.2 :: Float)
20funValue3 = _rhs (HNil `funL` 'c' `funR` "hi" `funR` 1.2 :: Float)
21funValue4 = _rhs (HNil `funL` 'c' `funL` "hi" `funR` 1.2 :: Float)
22funValue5 = _rhs (HNil `funR` 'c' `funR` "hi" `funL` 1.2 :: String)
23funValue6 = _rhs (HNil `funR` 'c' `funL` "hi" `funL` 1.2 :: Char)
24funValue7 = _rhs (HNil `funL` 'c' `funR` "hi" `funL` 1.2 :: String)
25funValue8 = _rhs (HNil `funL` 'c' `funL` "hi" `funL` 1.2 :: HList 'Nil)
1main is not found 26main is not found
2------------ trace 27------------ trace
3funL :: forall a b . a -> b -> a 28funL :: forall a b . a -> b -> a
diff --git a/testdata/language-features/basic-values/if01.out b/testdata/language-features/basic-values/if01.out
index b68d03e3..1e472faf 100644
--- a/testdata/language-features/basic-values/if01.out
+++ b/testdata/language-features/basic-values/if01.out
@@ -1,3 +1,6 @@
1------------ desugared source code
2value1 = _rhs (primIfThenElse True HNil HNil)
3value2 = _rhs (primIfThenElse False 1.0 2.0)
1main is not found 4main is not found
2------------ trace 5------------ trace
3value1 :: () 6value1 :: ()
diff --git a/testdata/language-features/basic-values/indentation01.out b/testdata/language-features/basic-values/indentation01.out
index 3893683c..0540da3c 100644
--- a/testdata/language-features/basic-values/indentation01.out
+++ b/testdata/language-features/basic-values/indentation01.out
@@ -1,3 +1,6 @@
1------------ desugared source code
2tuple1 = _rhs HNil
3tuple2 = _rhs HNil
1main is not found 4main is not found
2------------ trace 5------------ trace
3tuple1 :: () 6tuple1 :: ()
diff --git a/testdata/language-features/basic-values/indentation02.out b/testdata/language-features/basic-values/indentation02.out
index c6fd7aad..8fa11e6c 100644
--- a/testdata/language-features/basic-values/indentation02.out
+++ b/testdata/language-features/basic-values/indentation02.out
@@ -1,3 +1,6 @@
1------------ desugared source code
2tuple1 = _rhs HNil
3tuple2 = _rhs HNil
1main is not found 4main is not found
2------------ trace 5------------ trace
3tuple1 :: () 6tuple1 :: ()
diff --git a/testdata/language-features/basic-values/infix01.out b/testdata/language-features/basic-values/infix01.out
index 33ab245c..ec2b9ce7 100644
--- a/testdata/language-features/basic-values/infix01.out
+++ b/testdata/language-features/basic-values/infix01.out
@@ -1,3 +1,6 @@
1------------ desugared source code
2fun = \_ -> \_ -> _rhs HNil
3value = \(a :: _) (b :: _) -> _rhs (a `fun` b)
1main is not found 4main is not found
2------------ trace 5------------ trace
3fun :: forall a b . a -> b -> () 6fun :: forall a b . a -> b -> ()
diff --git a/testdata/language-features/basic-values/infix02.out b/testdata/language-features/basic-values/infix02.out
index 11e17685..2db04d26 100644
--- a/testdata/language-features/basic-values/infix02.out
+++ b/testdata/language-features/basic-values/infix02.out
@@ -1,3 +1,6 @@
1------------ desugared source code
2fun = \_ -> \_ -> \_ -> _rhs HNil
3value = \(a :: _) (b :: _) -> _rhs (a `fun` b)
1main is not found 4main is not found
2------------ trace 5------------ trace
3fun :: forall a b c . a -> b -> c -> () 6fun :: forall a b c . a -> b -> c -> ()
diff --git a/testdata/language-features/basic-values/infix03.out b/testdata/language-features/basic-values/infix03.out
index 213d9e06..d089f79d 100644
--- a/testdata/language-features/basic-values/infix03.out
+++ b/testdata/language-features/basic-values/infix03.out
@@ -1,9 +1,19 @@
1------------ desugared source code
2data D :: Type where
3 D2 :: HList 'Nil -> HList 'Nil -> D
4 D3 :: HList 'Nil -> HList 'Nil -> HList 'Nil -> D
5d2 = \(a :: _) (b :: _) -> _rhs (a `D2` b)
6d3 = \(a :: _) (b :: _) -> _rhs (a `D3` b)
1main is not found 7main is not found
2------------ trace 8------------ trace
3'D :: Type 9'D :: Type
4D2 :: () -> () -> D 10D2 :: () -> () -> D
5D3 :: () -> () -> () -> D 11D3 :: () -> () -> () -> D
6'DCase :: forall (a :: D -> Type) -> (forall (b :: ()) (c :: ()) -> a ('D2 b c)) -> (forall (d :: ()) (e :: ()) (f :: ()) -> a ('D3 d e f)) -> forall (g :: D) -> a g 12'DCase
13 :: forall (a :: D -> Type)
14 -> (forall (b :: ()) (c :: ()) -> a ('D2 b c))
15 -> (forall (d :: ()) (e :: ()) (f :: ()) -> a ('D3 d e f))
16 -> forall (g :: D) -> a g
7match'D :: forall (a :: Type -> Type) -> a D -> forall b -> a b -> a b 17match'D :: forall (a :: Type -> Type) -> a D -> forall b -> a b -> a b
8d2 :: () -> () -> D 18d2 :: () -> () -> D
9d3 :: () -> () -> () -> D 19d3 :: () -> () -> () -> D
diff --git a/testdata/language-features/basic-values/lambda01.out b/testdata/language-features/basic-values/lambda01.out
index e2c51312..5d57cdfd 100644
--- a/testdata/language-features/basic-values/lambda01.out
+++ b/testdata/language-features/basic-values/lambda01.out
@@ -1,9 +1,15 @@
1------------ desugared source code
2fun1 = _rhs \_ -> HNil
3fun2 = _rhs \_ -> HNil
4fun3 = _rhs \_ -> HNil
5fun4 = _rhs \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> \_ -> HNil
1main is not found 6main is not found
2------------ trace 7------------ trace
3fun1 :: forall a . a -> () 8fun1 :: forall a . a -> ()
4fun2 :: forall a . a -> () 9fun2 :: forall a . a -> ()
5fun3 :: forall a . a -> () 10fun3 :: forall a . a -> ()
6fun4 :: forall a b c d e f g h i . a -> b -> c -> d -> e -> f -> g -> h -> i -> () 11fun4
12 :: forall a b c d e f g h i . a -> b -> c -> d -> e -> f -> g -> h -> i -> ()
7------------ tooltips 13------------ tooltips
8testdata/language-features/basic-values/lambda01.lc 1:1-1:5 forall a . a -> () 14testdata/language-features/basic-values/lambda01.lc 1:1-1:5 forall a . a -> ()
9testdata/language-features/basic-values/lambda01.lc 1:14-1:16 () 15testdata/language-features/basic-values/lambda01.lc 1:14-1:16 ()
diff --git a/testdata/language-features/basic-values/lambda03.out b/testdata/language-features/basic-values/lambda03.out
index 902fdc98..33988c84 100644
--- a/testdata/language-features/basic-values/lambda03.out
+++ b/testdata/language-features/basic-values/lambda03.out
@@ -1,3 +1,6 @@
1------------ desugared source code
2fun1 = _rhs \_ (a :: _) -> \_ -> a
3fun2 = \(a :: _) -> _rhs \_ -> \_ -> \_ -> a
1main is not found 4main is not found
2------------ trace 5------------ trace
3fun1 :: 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/let01.out b/testdata/language-features/basic-values/let01.out
index 36ecf369..24948a10 100644
--- a/testdata/language-features/basic-values/let01.out
+++ b/testdata/language-features/basic-values/let01.out
@@ -1,3 +1,9 @@
1------------ desugared source code
2value1 = _rhs \(a := _rhs (fromInt 1)) -> fromInt 1
3value2 = _rhs \(a := _rhs (fromInt 1)) -> fromInt 1
4value3 = _rhs \(a := _rhs (fromInt 1)) (b := _rhs 'c') -> fromInt 1
5value4 = _rhs \(a := _rhs (fromInt 1)) -> fromInt 1
6value5 = _rhs \(a := _rhs (fromInt 1)) (b := _rhs (fromInt 2)) -> fromInt 1
1main is not found 7main is not found
2------------ trace 8------------ trace
3value1 :: forall a . Num a => a 9value1 :: forall a . Num a => a
diff --git a/testdata/language-features/basic-values/let02.out b/testdata/language-features/basic-values/let02.out
index bee7d640..92afbe41 100644
--- a/testdata/language-features/basic-values/let02.out
+++ b/testdata/language-features/basic-values/let02.out
@@ -1,3 +1,11 @@
1------------ desugared source code
2value
3 = _rhs
4 \(a := _rhs HNil)
5 (b := _rhs \(d := _rhs 'A') -> HNil)
6 (c
7 := _rhs
8 \(e := _rhs HNil) (f := _rhs (fromInt 1)) (g := _rhs "hello") -> 'B') -> HNil
1main is not found 9main is not found
2------------ trace 10------------ trace
3value :: () 11value :: ()
diff --git a/testdata/language-features/basic-values/literal01.out b/testdata/language-features/basic-values/literal01.out
index abaca3a7..a8328841 100644
--- a/testdata/language-features/basic-values/literal01.out
+++ b/testdata/language-features/basic-values/literal01.out
@@ -1,3 +1,12 @@
1------------ desugared source code
2intValue1 = _rhs (fromInt 0)
3intValue2 = _rhs (fromInt 1)
4intValue3 = _rhs (fromInt 12345)
5floatValue1 = _rhs 2.0
6floatValue2 = _rhs 123400.0
7charValue = _rhs 'A'
8stringValue1 = _rhs "Hello World"
9stringValue2 = _rhs "\nHello World\tagain!\r\n"
1main is not found 10main is not found
2------------ trace 11------------ trace
3intValue1 :: forall a . Num a => a 12intValue1 :: forall a . Num a => a
diff --git a/testdata/language-features/basic-values/operator01.out b/testdata/language-features/basic-values/operator01.out
index 597a3a00..deae312b 100644
--- a/testdata/language-features/basic-values/operator01.out
+++ b/testdata/language-features/basic-values/operator01.out
@@ -1,3 +1,8 @@
1------------ desugared source code
2#$# = \_ -> \_ -> _rhs HNil
3$$# = \_ -> \_ -> _rhs HNil
4$$$# = \_ -> \_ -> _rhs HNil
5$$$ = \_ -> \_ -> _rhs HNil
1main is not found 6main is not found
2------------ trace 7------------ trace
3#$# :: 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 30b3fcac..d6ef392d 100644
--- a/testdata/language-features/basic-values/operator05.out
+++ b/testdata/language-features/basic-values/operator05.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2value1 = _rhs \(a := \_ -> \_ -> _rhs HNil) -> a HNil HNil
1main is not found 3main is not found
2------------ trace 4------------ trace
3value1 :: () 5value1 :: ()
diff --git a/testdata/language-features/basic-values/operator06.out b/testdata/language-features/basic-values/operator06.out
index 4fa5381e..0252f155 100644
--- a/testdata/language-features/basic-values/operator06.out
+++ b/testdata/language-features/basic-values/operator06.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2value1 = _rhs \(a := \_ -> \_ -> _rhs HNil) -> a HNil HNil
1main is not found 3main is not found
2------------ trace 4------------ trace
3value1 :: () 5value1 :: ()
diff --git a/testdata/language-features/basic-values/shadowing01.out b/testdata/language-features/basic-values/shadowing01.out
index 9a8f5f22..6bddb912 100644
--- a/testdata/language-features/basic-values/shadowing01.out
+++ b/testdata/language-features/basic-values/shadowing01.out
@@ -1,3 +1,15 @@
1------------ desugared source code
2value
3 = _rhs
4 \(a := _rhs 'A')
5 (b := _rhs "hello")
6 (c
7 := _rhs
8 \(d := _rhs (fromInt 1))
9 (e := _rhs 2.12)
10 (f
11 := _rhs
12 \(g := _rhs HNil) (h := _rhs 'C') (i := _rhs 3.12) -> "world") -> HNil) -> '7'
1main is not found 13main is not found
2------------ trace 14------------ trace
3value :: Char 15value :: Char
diff --git a/testdata/language-features/basic-values/shadowing02.out b/testdata/language-features/basic-values/shadowing02.out
index d4d4373b..e5eaf957 100644
--- a/testdata/language-features/basic-values/shadowing02.out
+++ b/testdata/language-features/basic-values/shadowing02.out
@@ -1,3 +1,19 @@
1------------ desugared source code
2c = _rhs (fromInt 7)
3world = _rhs "world"
4value2
5 = _rhs
6 \(a := _rhs 'A')
7 (b := _rhs "hello")
8 (c := _rhs (fromInt 123))
9 (d
10 := _rhs
11 \(e := _rhs (fromInt 1))
12 (f := _rhs 2.12)
13 (g
14 := _rhs
15 \(h := _rhs HNil)
16 (i := _rhs 'C') (j := _rhs 3.12) (k := _rhs c) -> world) -> HNil) -> '7'
1main is not found 17main is not found
2------------ trace 18------------ trace
3c :: forall a . Num a => a 19c :: forall a . Num a => a
diff --git a/testdata/language-features/basic-values/shadowing03.out b/testdata/language-features/basic-values/shadowing03.out
index 23d28466..7c734e30 100644
--- a/testdata/language-features/basic-values/shadowing03.out
+++ b/testdata/language-features/basic-values/shadowing03.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2x = \_ -> \_ -> _rhs HNil
1main is not found 3main is not found
2------------ trace 4------------ trace
3x :: 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 70a54caa..8cd2c778 100644
--- a/testdata/language-features/basic-values/shadowing04.out
+++ b/testdata/language-features/basic-values/shadowing04.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2__ = \_ -> \_ -> _rhs HNil
1main is not found 3main is not found
2------------ trace 4------------ trace
3__ :: forall a b . a -> b -> () 5__ :: forall a b . a -> b -> ()
diff --git a/testdata/language-features/basic-values/tuple01.out b/testdata/language-features/basic-values/tuple01.out
index d3a27511..b1208a3a 100644
--- a/testdata/language-features/basic-values/tuple01.out
+++ b/testdata/language-features/basic-values/tuple01.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2unit = _rhs HNil
1main is not found 3main is not found
2------------ trace 4------------ trace
3unit :: () 5unit :: ()
diff --git a/testdata/language-features/basic-values/tuple02.out b/testdata/language-features/basic-values/tuple02.out
index 4e15f913..0419494e 100644
--- a/testdata/language-features/basic-values/tuple02.out
+++ b/testdata/language-features/basic-values/tuple02.out
@@ -1,3 +1,9 @@
1------------ desugared source code
2tuple1
3 = _rhs
4 (HCons (fromInt 1) (HCons 2.3 (HCons 'D' (HCons "string" (HCons HNil HNil)))))
5tuple2 = _rhs (HCons HNil (HCons HNil HNil))
6tuple3 = _rhs (HCons (HCons "name" (HCons 'c' HNil)) (HCons HNil HNil))
1main is not found 7main is not found
2------------ trace 8------------ trace
3tuple1 :: forall a . Num a => (a, Float, Char, String, ()) 9tuple1 :: forall a . Num a => (a, Float, Char, String, ())
diff --git a/testdata/language-features/basic-values/typesig01.out b/testdata/language-features/basic-values/typesig01.out
index c473b40c..491eb5f1 100644
--- a/testdata/language-features/basic-values/typesig01.out
+++ b/testdata/language-features/basic-values/typesig01.out
@@ -1,3 +1,6 @@
1------------ desugared source code
2value1 = _rhs 'a' :: Char
3value2 = _rhs 'a' :: Char
1main is not found 4main is not found
2------------ trace 5------------ trace
3value1 :: Char 6value1 :: Char
diff --git a/testdata/language-features/basic-values/typesig02.out b/testdata/language-features/basic-values/typesig02.out
index c1e6361e..e7b64644 100644
--- a/testdata/language-features/basic-values/typesig02.out
+++ b/testdata/language-features/basic-values/typesig02.out
@@ -1,3 +1,6 @@
1------------ desugared source code
2value1 = _rhs ('a' :: Char)
3value2 = _rhs ('a' :: Char)
1main is not found 4main is not found
2------------ trace 5------------ trace
3value1 :: Char 6value1 :: Char
diff --git a/testdata/language-features/basic-values/typesig03.out b/testdata/language-features/basic-values/typesig03.out
index 68d312c9..393824b3 100644
--- a/testdata/language-features/basic-values/typesig03.out
+++ b/testdata/language-features/basic-values/typesig03.out
@@ -1,3 +1,10 @@
1------------ desugared source code
2fun1
3 = (\_ -> \_ -> \_ -> _rhs HNil)
4 :: forall (a :: _) (b :: _) (c :: _) . a -> b -> c -> HList 'Nil
5fun2
6 = (\_ -> \_ -> \_ -> _rhs HNil)
7 :: forall (a :: _) (b :: _) (c :: _) . a -> b -> c -> HList 'Nil
1main is not found 8main is not found
2------------ trace 9------------ trace
3fun1 :: forall a b c . a -> b -> c -> () 10fun1 :: forall a b c . a -> b -> c -> ()
diff --git a/testdata/language-features/basic-values/typesig04.out b/testdata/language-features/basic-values/typesig04.out
index 3059a3ac..e6fbc596 100644
--- a/testdata/language-features/basic-values/typesig04.out
+++ b/testdata/language-features/basic-values/typesig04.out
@@ -1,3 +1,10 @@
1------------ desugared source code
2fun1
3 = (\_ -> \_ -> _rhs HNil)
4 :: forall (a :: _) (b :: _) (c :: _) . a -> (b -> c) -> HList 'Nil
5fun2
6 = (\_ -> \_ -> _rhs HNil)
7 :: forall (a :: _) (b :: _) (c :: _) . a -> (b -> c) -> HList 'Nil
1main is not found 8main is not found
2------------ trace 9------------ trace
3fun1 :: forall a b c . a -> (b -> c) -> () 10fun1 :: forall a b c . a -> (b -> c) -> ()
diff --git a/testdata/language-features/basic-values/typesig05.out b/testdata/language-features/basic-values/typesig05.out
index d107f4eb..1f40f653 100644
--- a/testdata/language-features/basic-values/typesig05.out
+++ b/testdata/language-features/basic-values/typesig05.out
@@ -1,3 +1,10 @@
1------------ desugared source code
2funL = \(a :: _) -> \_ -> _rhs a
3funR = \_ (a :: _) -> _rhs a
4value1 = _rhs (funL 'a' "b" :: Char)
5value2 = _rhs (funR 'a' "b" :: String)
6value3 = _rhs (funL 'a' "b") :: Char
7value4 = _rhs (funR 'a' "b") :: String
1main is not found 8main is not found
2------------ trace 9------------ trace
3funL :: forall a b . a -> b -> a 10funL :: forall a b . a -> b -> a
diff --git a/testdata/language-features/basic-values/typesig06.out b/testdata/language-features/basic-values/typesig06.out
index c249026f..6c86ce15 100644
--- a/testdata/language-features/basic-values/typesig06.out
+++ b/testdata/language-features/basic-values/typesig06.out
@@ -1,3 +1,8 @@
1------------ desugared source code
2funL = \(a :: _) -> \_ -> _rhs a
3<@ = \(a :: _) -> \_ -> _rhs a
4value1 = _rhs ("hi" <@ 1.2 :: String)
5value2 = _rhs ("hi" `funL` 1.2 :: String)
1main is not found 6main is not found
2------------ trace 7------------ trace
3funL :: forall a b . a -> b -> a 8funL :: forall a b . a -> b -> a
diff --git a/testdata/language-features/basic-values/typesig07.out b/testdata/language-features/basic-values/typesig07.out
index 65ce8df7..08742feb 100644
--- a/testdata/language-features/basic-values/typesig07.out
+++ b/testdata/language-features/basic-values/typesig07.out
@@ -1,3 +1,10 @@
1------------ desugared source code
2value1 = _rhs (fromInt 1) :: Int
3value2 = _rhs (fromInt 2) :: Int
4value3 = _rhs (fromInt 3) :: Int
5value4 = (\_ -> \_ -> _rhs HNil) :: HList 'Nil -> HList 'Nil -> HList 'Nil
6@@@ = (\_ -> \_ -> _rhs HNil) :: HList 'Nil -> HList 'Nil -> HList 'Nil
7value6 = (\_ -> \_ -> _rhs HNil) :: HList 'Nil -> HList 'Nil -> HList 'Nil
1main is not found 8main is not found
2------------ trace 9------------ trace
3value1 :: Int 10value1 :: Int
diff --git a/testdata/language-features/basic-values/typesyn01.out b/testdata/language-features/basic-values/typesyn01.out
index f5bf60cf..3d10ddaa 100644
--- a/testdata/language-features/basic-values/typesyn01.out
+++ b/testdata/language-features/basic-values/typesyn01.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2'MyUnit = _rhs ('HList Nil)
1main is not found 3main is not found
2------------ trace 4------------ trace
3'MyUnit :: Type 5'MyUnit :: Type
diff --git a/testdata/language-features/basic-values/typesyn02.out b/testdata/language-features/basic-values/typesyn02.out
index 858e7b33..615d97eb 100644
--- a/testdata/language-features/basic-values/typesyn02.out
+++ b/testdata/language-features/basic-values/typesyn02.out
@@ -1,3 +1,8 @@
1------------ desugared source code
2'MyUnit = _rhs ('HList Nil)
3fun
4 = (\_ (a :: _) -> hlistNilCase (_ :: _) (_rhs HNil) a)
5 :: forall (b :: _) . b -> MyUnit -> MyUnit
1main is not found 6main is not found
2------------ trace 7------------ trace
3'MyUnit :: Type 8'MyUnit :: Type
diff --git a/testdata/language-features/basic-values/where01.out b/testdata/language-features/basic-values/where01.out
index 11498269..0008aa6a 100644
--- a/testdata/language-features/basic-values/where01.out
+++ b/testdata/language-features/basic-values/where01.out
@@ -1,3 +1,15 @@
1------------ desugared source code
2value1 = _rhs \(a := _rhs HNil) -> HNil
3value2 = _rhs \(a := _rhs HNil) -> a
4value3 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> a
5value4 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> b
6value5 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> a
7value6 = _rhs HNil
8value7 = _rhs HNil
9value8 = _rhs HNil
10value9 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> a
11value10 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> a
12value11 = _rhs \(a := _rhs HNil) (b := _rhs HNil) -> a
1main is not found 13main is not found
2------------ trace 14------------ trace
3value1 :: () 15value1 :: ()
diff --git a/testdata/language-features/basic-values/where04.out b/testdata/language-features/basic-values/where04.out
index 8649acfa..36bc3969 100644
--- a/testdata/language-features/basic-values/where04.out
+++ b/testdata/language-features/basic-values/where04.out
@@ -1,3 +1,7 @@
1------------ desugared source code
2value1 = _rhs \(a := _rhs \(b := _rhs HNil) -> b) -> a
3value2 = _rhs \(a := _rhs \(b := _rhs HNil) -> b) -> a
4value3 = _rhs \(a := _rhs \(b := _rhs HNil) -> b) -> a
1main is not found 5main is not found
2------------ trace 6------------ trace
3value1 :: () 7value1 :: ()
diff --git a/testdata/language-features/basic-values/where05.out b/testdata/language-features/basic-values/where05.out
index 11743f93..ee42956d 100644
--- a/testdata/language-features/basic-values/where05.out
+++ b/testdata/language-features/basic-values/where05.out
@@ -1,3 +1,36 @@
1------------ desugared source code
2value1
3 = _rhs
4 ((\(a :: _) -> 'BoolCase
5 \_ -> _ :: _
6 HNil
7 \(b := _rhs HNil) -> b
8 (fromInt 1 == a))
9 (fromInt 1))
10value2
11 = _rhs
12 ((\(a :: _) -> 'BoolCase
13 \_ -> _ :: _
14 HNil
15 \(b := _rhs HNil) -> b
16 (fromInt 1 == a))
17 (fromInt 1))
18value3
19 = _rhs
20 ((\(a :: _) -> 'BoolCase
21 \_ -> _ :: _
22 HNil
23 \(b := _rhs HNil) -> b
24 (fromInt 1 == a))
25 (fromInt 1))
26value4
27 = _rhs
28 \(a := _rhs HNil) -> (\(b :: _) -> 'BoolCase
29 \_ -> _ :: _
30 HNil
31 a
32 (fromInt 1 == b))
33 (fromInt 1)
1main is not found 34main is not found
2------------ trace 35------------ trace
3value1 :: forall a . (Eq a, Num a) => () 36value1 :: forall a . (Eq a, Num a) => ()
diff --git a/testdata/language-features/basic-values/wildcard01.out b/testdata/language-features/basic-values/wildcard01.out
index 891a7edd..86b6cae7 100644
--- a/testdata/language-features/basic-values/wildcard01.out
+++ b/testdata/language-features/basic-values/wildcard01.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2funUnit = \_ -> _rhs HNil
1main is not found 3main is not found
2------------ trace 4------------ trace
3funUnit :: forall a . a -> () 5funUnit :: forall a . a -> ()