summaryrefslogtreecommitdiff
path: root/testdata/language-features/guard
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/language-features/guard')
-rw-r--r--testdata/language-features/guard/guard01.out2
-rw-r--r--testdata/language-features/guard/guard03.out7
-rw-r--r--testdata/language-features/guard/guard04.out2
-rw-r--r--testdata/language-features/guard/guard06.out2
-rw-r--r--testdata/language-features/guard/guard07.out7
-rw-r--r--testdata/language-features/guard/guard08.out7
-rw-r--r--testdata/language-features/guard/guard09.out7
-rw-r--r--testdata/language-features/guard/guard11.out2
-rw-r--r--testdata/language-features/guard/guard13.out2
-rw-r--r--testdata/language-features/guard/guard14.out2
-rw-r--r--testdata/language-features/guard/guard15.out2
-rw-r--r--testdata/language-features/guard/guard16.out9
12 files changed, 51 insertions, 0 deletions
diff --git a/testdata/language-features/guard/guard01.out b/testdata/language-features/guard/guard01.out
index 5f08a0dc..6fde06b1 100644
--- a/testdata/language-features/guard/guard01.out
+++ b/testdata/language-features/guard/guard01.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2value = 'BoolCase \_ -> _ :: _ (_rhs undefined) (_rhs HNil) True
1main is not found 3main is not found
2------------ trace 4------------ trace
3value :: () 5value :: ()
diff --git a/testdata/language-features/guard/guard03.out b/testdata/language-features/guard/guard03.out
index 7090e22b..7b176d9b 100644
--- a/testdata/language-features/guard/guard03.out
+++ b/testdata/language-features/guard/guard03.out
@@ -1,3 +1,10 @@
1------------ desugared source code
2value
3 = 'BoolCase
4 \_ -> _ :: _
5 ('BoolCase \_ -> _ :: _ (_rhs undefined) (_rhs "False") False)
6 (_rhs "True")
7 True
1main is not found 8main is not found
2------------ trace 9------------ trace
3value :: String 10value :: String
diff --git a/testdata/language-features/guard/guard04.out b/testdata/language-features/guard/guard04.out
index 3f34c61b..54ca2fb7 100644
--- a/testdata/language-features/guard/guard04.out
+++ b/testdata/language-features/guard/guard04.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2value = 'BoolCase \_ -> _ :: _ (_rhs "False") (_rhs "True") True
1main is not found 3main is not found
2------------ trace 4------------ trace
3value :: String 5value :: String
diff --git a/testdata/language-features/guard/guard06.out b/testdata/language-features/guard/guard06.out
index 6a42d526..9e4d40a5 100644
--- a/testdata/language-features/guard/guard06.out
+++ b/testdata/language-features/guard/guard06.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2value = _rhs HNil
1main is not found 3main is not found
2------------ trace 4------------ trace
3value :: () 5value :: ()
diff --git a/testdata/language-features/guard/guard07.out b/testdata/language-features/guard/guard07.out
index 38e182d2..461efa43 100644
--- a/testdata/language-features/guard/guard07.out
+++ b/testdata/language-features/guard/guard07.out
@@ -1,3 +1,10 @@
1------------ desugared source code
2value
3 = 'BoolCase
4 \_ -> _ :: _
5 ('BoolCase \_ -> _ :: _ (_rhs undefined) (_rhs "False") False)
6 (_rhs "True")
7 True
1main is not found 8main is not found
2------------ trace 9------------ trace
3value :: String 10value :: String
diff --git a/testdata/language-features/guard/guard08.out b/testdata/language-features/guard/guard08.out
index 075a074b..4f273b1d 100644
--- a/testdata/language-features/guard/guard08.out
+++ b/testdata/language-features/guard/guard08.out
@@ -1,3 +1,10 @@
1------------ desugared source code
2value
3 = 'BoolCase
4 \_ -> _ :: _
5 ('BoolCase \_ -> _ :: _ (_rhs undefined) (_rhs "False") False)
6 (_rhs "True")
7 True
1main is not found 8main is not found
2------------ trace 9------------ trace
3value :: String 10value :: String
diff --git a/testdata/language-features/guard/guard09.out b/testdata/language-features/guard/guard09.out
index 694aaa0a..f7fe0f27 100644
--- a/testdata/language-features/guard/guard09.out
+++ b/testdata/language-features/guard/guard09.out
@@ -1,3 +1,10 @@
1------------ desugared source code
2value
3 = 'BoolCase
4 \_ -> _ :: _
5 ('BoolCase \_ -> _ :: _ (_rhs undefined) (_rhs "False") False)
6 (_rhs "True")
7 True
1main is not found 8main is not found
2------------ trace 9------------ trace
3value :: String 10value :: String
diff --git a/testdata/language-features/guard/guard11.out b/testdata/language-features/guard/guard11.out
index 08498e54..ab4e408f 100644
--- a/testdata/language-features/guard/guard11.out
+++ b/testdata/language-features/guard/guard11.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2fun = \(a :: _) -> 'BoolCase \_ -> _ :: _ (_rhs "False") (_rhs "True") a
1main is not found 3main is not found
2------------ trace 4------------ trace
3fun :: Bool -> String 5fun :: Bool -> String
diff --git a/testdata/language-features/guard/guard13.out b/testdata/language-features/guard/guard13.out
index 2ab6fd64..a39476bd 100644
--- a/testdata/language-features/guard/guard13.out
+++ b/testdata/language-features/guard/guard13.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2fun = \(a :: _) -> 'BoolCase \_ -> _ :: _ (_rhs HNil) (_rhs HNil) a
1main is not found 3main is not found
2------------ trace 4------------ trace
3fun :: Bool -> () 5fun :: Bool -> ()
diff --git a/testdata/language-features/guard/guard14.out b/testdata/language-features/guard/guard14.out
index 6239a07f..67a9c499 100644
--- a/testdata/language-features/guard/guard14.out
+++ b/testdata/language-features/guard/guard14.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2value = _rhs \(a := 'BoolCase \_ -> _ :: _ (_rhs HNil) (_rhs HNil) True) -> HNil
1main is not found 3main is not found
2------------ trace 4------------ trace
3value :: () 5value :: ()
diff --git a/testdata/language-features/guard/guard15.out b/testdata/language-features/guard/guard15.out
index d29b7738..4293221c 100644
--- a/testdata/language-features/guard/guard15.out
+++ b/testdata/language-features/guard/guard15.out
@@ -1,3 +1,5 @@
1------------ desugared source code
2value = _rhs \(a := 'BoolCase \_ -> _ :: _ (_rhs HNil) (_rhs HNil) True) -> HNil
1main is not found 3main is not found
2------------ trace 4------------ trace
3value :: () 5value :: ()
diff --git a/testdata/language-features/guard/guard16.out b/testdata/language-features/guard/guard16.out
index 1c3bd27d..9886821b 100644
--- a/testdata/language-features/guard/guard16.out
+++ b/testdata/language-features/guard/guard16.out
@@ -1,3 +1,12 @@
1------------ desugared source code
2value
3 = _rhs
4 ((\(a :: _) -> 'BoolCase
5 \_ -> _ :: _
6 HNil
7 ('BoolCase \_ -> _ :: _ HNil HNil True)
8 (fromInt 1 == a))
9 (fromInt 1))
1main is not found 10main is not found
2------------ trace 11------------ trace
3value :: forall a . (Eq a, Num a) => () 12value :: forall a . (Eq a, Num a) => ()