diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-05-02 17:26:25 +0200 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-05-02 17:26:25 +0200 |
commit | 769c7ac09e66bcae5ca34009734b5e184ce2e0f0 (patch) | |
tree | 773a90e94001381db6b7d9b5cbd8570a8f74a656 /testdata/Prelude.out | |
parent | 2fe36db8e0c4197fb4dd55c4de3fc15e038744a2 (diff) |
use [] instead of Nil in pretty print
Diffstat (limited to 'testdata/Prelude.out')
-rw-r--r-- | testdata/Prelude.out | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/testdata/Prelude.out b/testdata/Prelude.out index 3f3db079..fdd8ce6b 100644 --- a/testdata/Prelude.out +++ b/testdata/Prelude.out | |||
@@ -33,10 +33,10 @@ pi = _rhs 3.141592653589793 | |||
33 | zip | 33 | zip |
34 | = (\(a :: _) (b :: _) -> 'ListCase | 34 | = (\(a :: _) (b :: _) -> 'ListCase |
35 | \_ -> _ :: _ | 35 | \_ -> _ :: _ |
36 | (_rhs Nil) | 36 | (_rhs []) |
37 | \(c :: _) (d :: _) -> 'ListCase | 37 | \(c :: _) (d :: _) -> 'ListCase |
38 | \_ -> _ :: _ | 38 | \_ -> _ :: _ |
39 | (_rhs Nil) | 39 | (_rhs []) |
40 | \(e :: _) (f :: _) -> _rhs (HCons c (HCons e HNil) : zip d f) | 40 | \(e :: _) (f :: _) -> _rhs (HCons c (HCons e HNil) : zip d f) |
41 | b | 41 | b |
42 | a) | 42 | a) |
@@ -44,7 +44,7 @@ zip | |||
44 | unzip | 44 | unzip |
45 | = (\(a :: _) -> 'ListCase | 45 | = (\(a :: _) -> 'ListCase |
46 | \_ -> _ :: _ | 46 | \_ -> _ :: _ |
47 | (_rhs (HCons Nil (HCons Nil HNil))) | 47 | (_rhs (HCons [] (HCons [] HNil))) |
48 | \(b :: _) (c :: _) -> hlistConsCase | 48 | \(b :: _) (c :: _) -> hlistConsCase |
49 | (_ :: _) | 49 | (_ :: _) |
50 | \(d :: _) (e :: _) -> hlistConsCase | 50 | \(d :: _) (e :: _) -> hlistConsCase |
@@ -82,7 +82,7 @@ unzip | |||
82 | filter | 82 | filter |
83 | = \(a :: _) (b :: _) -> 'ListCase | 83 | = \(a :: _) (b :: _) -> 'ListCase |
84 | \_ -> _ :: _ | 84 | \_ -> _ :: _ |
85 | (_rhs Nil) | 85 | (_rhs []) |
86 | \(c :: _) (d :: _) -> _rhs | 86 | \(c :: _) (d :: _) -> _rhs |
87 | ((\(e :: _) -> 'BoolCase \_ -> _ :: _ (filter a d) (c : filter a d) e) (a c)) | 87 | ((\(e :: _) -> 'BoolCase \_ -> _ :: _ (filter a d) (c : filter a d) e) (a c)) |
88 | b | 88 | b |
@@ -107,7 +107,7 @@ foldr1 | |||
107 | split | 107 | split |
108 | = \(a :: _) -> 'ListCase | 108 | = \(a :: _) -> 'ListCase |
109 | \_ -> _ :: _ | 109 | \_ -> _ :: _ |
110 | (_rhs (HCons Nil (HCons Nil HNil))) | 110 | (_rhs (HCons [] (HCons [] HNil))) |
111 | \(b :: _) (c :: _) -> _rhs | 111 | \(b :: _) (c :: _) -> _rhs |
112 | \(d := _rhs (split c)) | 112 | \(d := _rhs (split c)) |
113 | (e | 113 | (e |
@@ -151,10 +151,10 @@ mergeBy | |||
151 | sortBy | 151 | sortBy |
152 | = \(a :: _) (b :: _) -> 'ListCase | 152 | = \(a :: _) (b :: _) -> 'ListCase |
153 | \_ -> _ :: _ | 153 | \_ -> _ :: _ |
154 | (_rhs Nil) | 154 | (_rhs []) |
155 | \(c :: _) (d :: _) -> 'ListCase | 155 | \(c :: _) (d :: _) -> 'ListCase |
156 | \_ -> _ :: _ | 156 | \_ -> _ :: _ |
157 | (_rhs (c : Nil)) | 157 | (_rhs (c : [])) |
158 | \_ -> \_ -> _rhs (uncurry (mergeBy a) ((sortBy a *** sortBy a) (split b))) | 158 | \_ -> \_ -> _rhs (uncurry (mergeBy a) ((sortBy a *** sortBy a) (split b))) |
159 | d | 159 | d |
160 | b | 160 | b |
@@ -452,7 +452,7 @@ fromTo | |||
452 | = (\(a :: _) (b :: _) -> 'BoolCase | 452 | = (\(a :: _) (b :: _) -> 'BoolCase |
453 | \_ -> _ :: _ | 453 | \_ -> _ :: _ |
454 | (_rhs (a : fromTo (a + fromInt 1) b)) | 454 | (_rhs (a : fromTo (a + fromInt 1) b)) |
455 | (_rhs Nil) | 455 | (_rhs []) |
456 | (a > b)) | 456 | (a > b)) |
457 | :: Float -> Float -> List Float | 457 | :: Float -> Float -> List Float |
458 | !! | 458 | !! |
@@ -3535,19 +3535,19 @@ Uncovered pattern(s) at testdata/Prelude.lc:50:1: | |||
3535 | tail (_: xs) = xs | 3535 | tail (_: xs) = xs |
3536 | ^^^^ | 3536 | ^^^^ |
3537 | Missing case(s): | 3537 | Missing case(s): |
3538 | tail Nil | 3538 | tail [] |
3539 | Uncovered pattern(s) at testdata/Prelude.lc:58:1: | 3539 | Uncovered pattern(s) at testdata/Prelude.lc:58:1: |
3540 | foldr1 f (x: xs) = foldr f x xs | 3540 | foldr1 f (x: xs) = foldr f x xs |
3541 | ^^^^^^ | 3541 | ^^^^^^ |
3542 | Missing case(s): | 3542 | Missing case(s): |
3543 | foldr1 _ Nil | 3543 | foldr1 _ [] |
3544 | Uncovered pattern(s) at testdata/Prelude.lc:137:1: | 3544 | Uncovered pattern(s) at testdata/Prelude.lc:137:1: |
3545 | project @a @('RecItem s' a': xs) s @_ (RecordCons ts) | s == s' = fstTup (unsafeCoerce @_ @(HList '(a : map recItemType xs)) ts) | 3545 | project @a @('RecItem s' a': xs) s @_ (RecordCons ts) | s == s' = fstTup (unsafeCoerce @_ @(HList '(a : map recItemType xs)) ts) |
3546 | project @a @('RecItem s' a': xs) s @_ (RecordCons ts) = project @a @xs s @(undefined @(isKeyC s a xs)) (RecordCons (sndTup (unsafeCoerce @_ @(HList '(a : map recItemType xs)) ts))) | 3546 | project @a @('RecItem s' a': xs) s @_ (RecordCons ts) = project @a @xs s @(undefined @(isKeyC s a xs)) (RecordCons (sndTup (unsafeCoerce @_ @(HList '(a : map recItemType xs)) ts))) |
3547 | Missing case(s): | 3547 | Missing case(s): |
3548 | project _ Nil _ _ _ | 3548 | project _ [] _ _ _ |
3549 | Uncovered pattern(s) at testdata/Prelude.lc:388:10: | 3549 | 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) |
3552 | Missing case(s): | 3552 | Missing case(s): |
3553 | !! Nil _ \ No newline at end of file | 3553 | !! [] _ \ No newline at end of file |