diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-05-03 16:34:31 +0200 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-05-03 16:34:31 +0200 |
commit | fa47957b930c53d78d2da0bcb948e2fbff11f59d (patch) | |
tree | 25ba37580c8a73e9a8cc7fce31030c8a1a7dbf72 /testdata/Internals.out | |
parent | 9c258737a3a4cfabec6804947ccf64a552db4c27 (diff) |
refactoring
Diffstat (limited to 'testdata/Internals.out')
-rw-r--r-- | testdata/Internals.out | 160 |
1 files changed, 78 insertions, 82 deletions
diff --git a/testdata/Internals.out b/testdata/Internals.out index 9ae0f3e1..b3eac04a 100644 --- a/testdata/Internals.out +++ b/testdata/Internals.out | |||
@@ -50,145 +50,141 @@ primSubInt :: Int -> Int -> Int | |||
50 | primModInt :: Int -> Int -> Int | 50 | primModInt :: Int -> Int -> Int |
51 | primSqrtFloat :: Float -> Float | 51 | primSqrtFloat :: Float -> Float |
52 | primRound :: Float -> Int | 52 | primRound :: Float -> Int |
53 | primIfThenElse :: forall (a :: _) . Bool -> a -> a -> a | ||
53 | primIfThenElse | 54 | primIfThenElse |
54 | = (\(a :: _) (b :: _) (c :: _) -> case'Bool (\_ -> _) (_rhs c) (_rhs b) a) | 55 | = \(a :: _) (b :: _) (c :: _) -> case'Bool (\_ -> _) (_rhs c) (_rhs b) a |
55 | :: forall (d :: _) . Bool -> d -> d -> d | ||
56 | isEQ | 56 | isEQ |
57 | = \(a :: _) -> case'Ordering (\_ -> _) (_rhs False) (_rhs True) (_rhs False) a | 57 | = \(a :: _) -> case'Ordering (\_ -> _) (_rhs False) (_rhs True) (_rhs False) a |
58 | 'Num :: Type -> Type | ||
58 | 'Num | 59 | 'Num |
59 | = (\(a :: _) -> match'Int | 60 | = \(a :: _) -> match'Int |
61 | (\_ -> _) | ||
62 | (_rhs 'Unit) | ||
63 | a | ||
64 | (match'Word | ||
60 | (\_ -> _) | 65 | (\_ -> _) |
61 | (_rhs 'Unit) | 66 | (_rhs 'Unit) |
62 | a | 67 | a |
63 | (match'Word | 68 | (match'Float |
64 | (\_ -> _) | 69 | (\_ -> _) |
65 | (_rhs 'Unit) | 70 | (_rhs 'Unit) |
66 | a | 71 | a |
67 | (match'Float | 72 | (match'Nat |
68 | (\_ -> _) | 73 | (\_ -> _) |
69 | (_rhs 'Unit) | 74 | (_rhs 'Unit) |
70 | a | 75 | a |
71 | (match'Nat | 76 | (_rhs ('Empty "no instance of 'Num on ???"))))) |
72 | (\_ -> _) | 77 | fromInt :: forall a . Num a => Int -> a |
73 | (_rhs 'Unit) | ||
74 | a | ||
75 | (_rhs ('Empty "no instance of 'Num on ???")))))) | ||
76 | :: Type -> Type | ||
77 | fromInt | 78 | fromInt |
78 | = (\ @a @_ -> match'Int | 79 | = \ @a @_ -> match'Int |
80 | (\_ -> _) | ||
81 | (_rhs \(b := _rhs \(c :: _) -> c) -> b) | ||
82 | a | ||
83 | (match'Word | ||
79 | (\_ -> _) | 84 | (\_ -> _) |
80 | (_rhs \(b := _rhs \(c :: _) -> c) -> b) | 85 | (_rhs \(d := _rhs primIntToWord) -> d) |
81 | a | 86 | a |
82 | (match'Word | 87 | (match'Float |
83 | (\_ -> _) | 88 | (\_ -> _) |
84 | (_rhs \(d := _rhs primIntToWord) -> d) | 89 | (_rhs \(e := _rhs primIntToFloat) -> e) |
85 | a | 90 | a |
86 | (match'Float | 91 | (match'Nat (\_ -> _) (_rhs \(f := _rhs primIntToNat) -> f) a (_rhs undefined)))) |
87 | (\_ -> _) | 92 | compare :: forall a . Num a => a -> a -> Ordering |
88 | (_rhs \(e := _rhs primIntToFloat) -> e) | ||
89 | a | ||
90 | (match'Nat | ||
91 | (\_ -> _) | ||
92 | (_rhs \(f := _rhs primIntToNat) -> f) | ||
93 | a | ||
94 | (_rhs undefined))))) | ||
95 | :: forall g . Num g => Int -> g | ||
96 | compare | 93 | compare |
97 | = (\ @a @_ -> match'Int | 94 | = \ @a @_ -> match'Int |
95 | (\_ -> _) | ||
96 | (_rhs \(b := _rhs primCompareInt) -> b) | ||
97 | a | ||
98 | (match'Word | ||
98 | (\_ -> _) | 99 | (\_ -> _) |
99 | (_rhs \(b := _rhs primCompareInt) -> b) | 100 | (_rhs \(c := _rhs primCompareWord) -> c) |
100 | a | 101 | a |
101 | (match'Word | 102 | (match'Float |
102 | (\_ -> _) | 103 | (\_ -> _) |
103 | (_rhs \(c := _rhs primCompareWord) -> c) | 104 | (_rhs \(d := _rhs primCompareFloat) -> d) |
104 | a | 105 | a |
105 | (match'Float | 106 | (match'Nat (\_ -> _) (_rhs \(e := _rhs undefined) -> e) a (_rhs undefined)))) |
106 | (\_ -> _) | 107 | negate :: forall a . Num a => a -> a |
107 | (_rhs \(d := _rhs primCompareFloat) -> d) | ||
108 | a | ||
109 | (match'Nat (\_ -> _) (_rhs \(e := _rhs undefined) -> e) a (_rhs undefined))))) | ||
110 | :: forall f . Num f => f -> f -> Ordering | ||
111 | negate | 108 | negate |
112 | = (\ @a @_ -> match'Int | 109 | = \ @a @_ -> match'Int |
110 | (\_ -> _) | ||
111 | (_rhs \(b := _rhs primNegateInt) -> b) | ||
112 | a | ||
113 | (match'Word | ||
113 | (\_ -> _) | 114 | (\_ -> _) |
114 | (_rhs \(b := _rhs primNegateInt) -> b) | 115 | (_rhs \(c := _rhs primNegateWord) -> c) |
115 | a | 116 | a |
116 | (match'Word | 117 | (match'Float |
117 | (\_ -> _) | 118 | (\_ -> _) |
118 | (_rhs \(c := _rhs primNegateWord) -> c) | 119 | (_rhs \(d := _rhs primNegateFloat) -> d) |
119 | a | 120 | a |
120 | (match'Float | 121 | (match'Nat (\_ -> _) (_rhs \(e := _rhs undefined) -> e) a (_rhs undefined)))) |
121 | (\_ -> _) | 122 | 'Eq :: Type -> Type |
122 | (_rhs \(d := _rhs primNegateFloat) -> d) | ||
123 | a | ||
124 | (match'Nat (\_ -> _) (_rhs \(e := _rhs undefined) -> e) a (_rhs undefined))))) | ||
125 | :: forall f . Num f => f -> f | ||
126 | 'Eq | 123 | 'Eq |
127 | = (\(a :: _) -> match'String | 124 | = \(a :: _) -> match'String |
125 | (\_ -> _) | ||
126 | (_rhs 'Unit) | ||
127 | a | ||
128 | (match'Char | ||
128 | (\_ -> _) | 129 | (\_ -> _) |
129 | (_rhs 'Unit) | 130 | (_rhs 'Unit) |
130 | a | 131 | a |
131 | (match'Char | 132 | (match'Int |
132 | (\_ -> _) | 133 | (\_ -> _) |
133 | (_rhs 'Unit) | 134 | (_rhs 'Unit) |
134 | a | 135 | a |
135 | (match'Int | 136 | (match'Float |
136 | (\_ -> _) | 137 | (\_ -> _) |
137 | (_rhs 'Unit) | 138 | (_rhs 'Unit) |
138 | a | 139 | a |
139 | (match'Float | 140 | (match'Bool |
140 | (\_ -> _) | 141 | (\_ -> _) |
141 | (_rhs 'Unit) | 142 | (_rhs 'Unit) |
142 | a | 143 | a |
143 | (match'Bool | 144 | (match'Nat |
144 | (\_ -> _) | 145 | (\_ -> _) |
145 | (_rhs 'Unit) | 146 | (_rhs 'Unit) |
146 | a | 147 | a |
147 | (match'Nat | 148 | (_rhs ('Empty "no instance of 'Eq on ???"))))))) |
148 | (\_ -> _) | 149 | (==) :: forall a . Eq a => a -> a -> Bool |
149 | (_rhs 'Unit) | ||
150 | a | ||
151 | (_rhs ('Empty "no instance of 'Eq on ???")))))))) | ||
152 | :: Type -> Type | ||
153 | (==) | 150 | (==) |
154 | = (\ @a @_ -> match'String | 151 | = \ @a @_ -> match'String |
152 | (\_ -> _) | ||
153 | (_rhs \(b := \(c :: _) (d :: _) -> _rhs (isEQ (primCompareString c d))) -> b) | ||
154 | a | ||
155 | (match'Char | ||
155 | (\_ -> _) | 156 | (\_ -> _) |
156 | (_rhs \(b := \(c :: _) (d :: _) -> _rhs (isEQ (primCompareString c d))) -> b) | 157 | (_rhs \(e := \(f :: _) (g :: _) -> _rhs (isEQ (primCompareChar f g))) -> e) |
157 | a | 158 | a |
158 | (match'Char | 159 | (match'Int |
159 | (\_ -> _) | 160 | (\_ -> _) |
160 | (_rhs \(e := \(f :: _) (g :: _) -> _rhs (isEQ (primCompareChar f g))) -> e) | 161 | (_rhs \(h := \(i :: _) (j :: _) -> _rhs (isEQ (primCompareInt i j))) -> h) |
161 | a | 162 | a |
162 | (match'Int | 163 | (match'Float |
163 | (\_ -> _) | 164 | (\_ -> _) |
164 | (_rhs \(h := \(i :: _) (j :: _) -> _rhs (isEQ (primCompareInt i j))) -> h) | 165 | (_rhs \(k := \(l :: _) (m :: _) -> _rhs (isEQ (primCompareFloat l m))) -> k) |
165 | a | 166 | a |
166 | (match'Float | 167 | (match'Bool |
167 | (\_ -> _) | 168 | (\_ -> _) |
168 | (_rhs \(k := \(l :: _) (m :: _) -> _rhs (isEQ (primCompareFloat l m))) -> k) | 169 | (_rhs |
170 | \(n | ||
171 | := \(o :: _) (p :: _) -> case'Bool | ||
172 | (\_ -> _) | ||
173 | (case'Bool (\_ -> _) (_rhs True) (_rhs False) p) | ||
174 | (case'Bool (\_ -> _) (_rhs False) (_rhs True) p) | ||
175 | o) -> n) | ||
169 | a | 176 | a |
170 | (match'Bool | 177 | (match'Nat |
171 | (\_ -> _) | 178 | (\_ -> _) |
172 | (_rhs | 179 | (_rhs |
173 | \(n | 180 | \(q |
174 | := \(o :: _) (p :: _) -> case'Bool | 181 | := \(r :: _) (s :: _) -> case'Nat |
175 | (\_ -> _) | 182 | (\_ -> _) |
176 | (case'Bool (\_ -> _) (_rhs True) (_rhs False) p) | 183 | (case'Nat (\_ -> _) (_rhs True) (\_ -> _rhs False) s) |
177 | (case'Bool (\_ -> _) (_rhs False) (_rhs True) p) | 184 | (\(t :: _) -> case'Nat (\_ -> _) (_rhs False) (\(u :: _) -> _rhs (t == u)) s) |
178 | o) -> n) | 185 | r) -> q) |
179 | a | 186 | a |
180 | (match'Nat | 187 | (_rhs undefined)))))) |
181 | (\_ -> _) | ||
182 | (_rhs | ||
183 | \(q | ||
184 | := \(r :: _) (s :: _) -> case'Nat | ||
185 | (\_ -> _) | ||
186 | (case'Nat (\_ -> _) (_rhs True) (\_ -> _rhs False) s) | ||
187 | (\(t :: _) -> case'Nat (\_ -> _) (_rhs False) (\(u :: _) -> _rhs (t == u)) s) | ||
188 | r) -> q) | ||
189 | a | ||
190 | (_rhs undefined))))))) | ||
191 | :: forall v . Eq v => v -> v -> Bool | ||
192 | infix 4 == | 188 | infix 4 == |
193 | data List (_ :: Type) :: Type where | 189 | data List (_ :: Type) :: Type where |
194 | [] :: forall a . [a] | 190 | [] :: forall a . [a] |