summaryrefslogtreecommitdiff
path: root/testdata/Internals.out
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/Internals.out
parent1a7544763729938e7009ead1e375e9bbf413afb0 (diff)
improve pretty print layout & show desugared source code in .out files
Diffstat (limited to 'testdata/Internals.out')
-rw-r--r--testdata/Internals.out252
1 files changed, 241 insertions, 11 deletions
diff --git a/testdata/Internals.out b/testdata/Internals.out
index af664ddd..520e7204 100644
--- a/testdata/Internals.out
+++ b/testdata/Internals.out
@@ -1,3 +1,207 @@
1------------ desugared source code
2typeAnn = \(a :: _) -> _rhs a
3parens = \(a :: _) -> _rhs a
4undefined :: forall a . a
5primFix :: forall a . (a -> a) -> a
6data Unit :: Type where
7 TT :: Unit
8data String :: Type where
9
10data Empty (_ :: String) :: Type where
11
12unsafeCoerce :: forall (a :: _) (b :: _) . a -> b
13'EqCT :: forall a -> a -> a -> Type
14parEval :: forall (a :: _) -> a -> a -> a
15'T2 :: Type -> Type -> Type
16match'Type :: forall (a :: Type -> Type) -> a Type -> forall b -> a b -> a b
17'EqCTt = _rhs ('EqCT (_ :: _))
18t2C :: Unit -> Unit -> Unit
19data Int :: Type where
20
21data Word :: Type where
22
23data Float :: Type where
24
25data Char :: Type where
26
27data Bool :: Type where
28 False :: Bool
29 True :: Bool
30data Ordering :: Type where
31 LT :: Ordering
32 EQ :: Ordering
33 GT :: Ordering
34data Nat :: Type where
35 Zero :: Nat
36 Succ :: Nat -> Nat
37primIntToWord :: Int -> Word
38primIntToFloat :: Int -> Float
39primIntToNat :: Int -> Nat
40primCompareInt :: Int -> Int -> Ordering
41primCompareWord :: Word -> Word -> Ordering
42primCompareFloat :: Float -> Float -> Ordering
43primCompareChar :: Char -> Char -> Ordering
44primCompareString :: String -> String -> Ordering
45primNegateInt :: Int -> Int
46primNegateWord :: Word -> Word
47primNegateFloat :: Float -> Float
48primAddInt :: Int -> Int -> Int
49primSubInt :: Int -> Int -> Int
50primModInt :: Int -> Int -> Int
51primSqrtFloat :: Float -> Float
52primRound :: Float -> Int
53primIfThenElse
54 = (\(a :: _) (b :: _) (c :: _) -> 'BoolCase \_ -> _ :: _ (_rhs c) (_rhs b) a)
55 :: forall (d :: _) . Bool -> d -> d -> d
56isEQ
57 = \(a :: _) -> 'OrderingCase
58 \_ -> _ :: _
59 (_rhs False)
60 (_rhs True)
61 (_rhs False)
62 a
63'Num
64 = (\(a :: _) -> match'Int
65 \_ -> _
66 (_rhs 'Unit)
67 a
68 (match'Word
69 \_ -> _
70 (_rhs 'Unit)
71 a
72 (match'Float
73 \_ -> _
74 (_rhs 'Unit)
75 a
76 (match'Nat
77 \_ -> _
78 (_rhs 'Unit)
79 a
80 (_rhs ('Empty "no instance of 'Num on ???"))))))
81 :: Type -> Type
82fromInt
83 = (\ @a -> \ @_ -> match'Int
84 \_ -> _
85 (_rhs \(b := _rhs \(c :: _) -> c) -> b)
86 a
87 (match'Word
88 \_ -> _
89 (_rhs \(d := _rhs primIntToWord) -> d)
90 a
91 (match'Float
92 \_ -> _
93 (_rhs \(e := _rhs primIntToFloat) -> e)
94 a
95 (match'Nat \_ -> _ (_rhs \(f := _rhs primIntToNat) -> f) a (_rhs undefined)))))
96 :: forall g . Num g => Int -> g
97compare
98 = (\ @a -> \ @_ -> match'Int
99 \_ -> _
100 (_rhs \(b := _rhs primCompareInt) -> b)
101 a
102 (match'Word
103 \_ -> _
104 (_rhs \(c := _rhs primCompareWord) -> c)
105 a
106 (match'Float
107 \_ -> _
108 (_rhs \(d := _rhs primCompareFloat) -> d)
109 a
110 (match'Nat \_ -> _ (_rhs \(e := _rhs undefined) -> e) a (_rhs undefined)))))
111 :: forall f . Num f => f -> f -> Ordering
112negate
113 = (\ @a -> \ @_ -> match'Int
114 \_ -> _
115 (_rhs \(b := _rhs primNegateInt) -> b)
116 a
117 (match'Word
118 \_ -> _
119 (_rhs \(c := _rhs primNegateWord) -> c)
120 a
121 (match'Float
122 \_ -> _
123 (_rhs \(d := _rhs primNegateFloat) -> d)
124 a
125 (match'Nat \_ -> _ (_rhs \(e := _rhs undefined) -> e) a (_rhs undefined)))))
126 :: forall f . Num f => f -> f
127'Eq
128 = (\(a :: _) -> match'String
129 \_ -> _
130 (_rhs 'Unit)
131 a
132 (match'Char
133 \_ -> _
134 (_rhs 'Unit)
135 a
136 (match'Int
137 \_ -> _
138 (_rhs 'Unit)
139 a
140 (match'Float
141 \_ -> _
142 (_rhs 'Unit)
143 a
144 (match'Bool
145 \_ -> _
146 (_rhs 'Unit)
147 a
148 (match'Nat
149 \_ -> _
150 (_rhs 'Unit)
151 a
152 (_rhs ('Empty "no instance of 'Eq on ???"))))))))
153 :: Type -> Type
154==
155 = (\ @a -> \ @_ -> match'String
156 \_ -> _
157 (_rhs \(b := \(c :: _) (d :: _) -> _rhs (isEQ (primCompareString c d))) -> b)
158 a
159 (match'Char
160 \_ -> _
161 (_rhs \(e := \(f :: _) (g :: _) -> _rhs (isEQ (primCompareChar f g))) -> e)
162 a
163 (match'Int
164 \_ -> _
165 (_rhs \(h := \(i :: _) (j :: _) -> _rhs (isEQ (primCompareInt i j))) -> h)
166 a
167 (match'Float
168 \_ -> _
169 (_rhs \(k := \(l :: _) (m :: _) -> _rhs (isEQ (primCompareFloat l m))) -> k)
170 a
171 (match'Bool
172 \_ -> _
173 (_rhs
174 \(n
175 := \(o :: _) (p :: _) -> 'BoolCase
176 \_ -> _ :: _
177 ('BoolCase \_ -> _ :: _ (_rhs True) (_rhs False) p)
178 ('BoolCase \_ -> _ :: _ (_rhs False) (_rhs True) p)
179 o) -> n)
180 a
181 (match'Nat
182 \_ -> _
183 (_rhs
184 \(q
185 := \(r :: _) (s :: _) -> 'NatCase
186 \_ -> _ :: _
187 ('NatCase \_ -> _ :: _ (_rhs True) \_ -> _rhs False s)
188 \(t :: _) -> 'NatCase \_ -> _ :: _ (_rhs False) \(u :: _) -> _rhs (t == u) s
189 r) -> q)
190 a
191 (_rhs undefined)))))))
192 :: forall v . Eq v => v -> v -> Bool
193infix 4 ==
194data List (_ :: Type) :: Type where
195 Nil :: List _a
196 Cons :: _a -> List _a -> List _a
197infixr 5 Cons
198data HList :: List Type -> Type where
199 HNil :: HList 'Nil
200 HCons :: forall (a :: _) (b :: _) . a -> HList b -> HList (a : b)
201hlistNilCase :: forall (a :: _) -> a -> HList Nil -> a
202hlistConsCase
203 :: forall a (b :: List Type)
204 . forall (c :: _) -> (a -> HList b -> c) -> HList (Cons a b) -> c
1main is not found 205main is not found
2------------ trace 206------------ trace
3typeAnn :: forall a . a -> a 207typeAnn :: forall a . a -> a
@@ -12,8 +216,11 @@ match'Unit :: forall (a :: Type -> Type) -> a Unit[0
12'StringCase :: forall (a :: String -> Type) (b :: String) -> a b 216'StringCase :: forall (a :: String -> Type) (b :: String) -> a b
13match'String :: forall (a :: Type -> Type) -> a String -> forall b -> a b -> a b 217match'String :: forall (a :: Type -> Type) -> a String -> forall b -> a b -> a b
14'Empty :: String -> Type 218'Empty :: String -> Type
15'EmptyCase :: forall (a :: String) . forall (b :: Empty a -> Type) (c :: Empty a) -> b c 219'EmptyCase
16match'Empty :: forall (a :: Type -> Type) -> (forall (b :: String) -> a (Empty b)) -> forall c -> a c -> a c 220 :: forall (a :: String) . forall (b :: Empty a -> Type) (c :: Empty a) -> b c
221match'Empty
222 :: forall (a :: Type -> Type)
223 -> (forall (b :: String) -> a (Empty b)) -> forall c -> a c -> a c
17unsafeCoerce :: forall a b . a -> b 224unsafeCoerce :: forall a b . a -> b
18'EqCT :: forall a -> a -> a -> Type 225'EqCT :: forall a -> a -> a -> Type
19parEval :: forall a -> a -> a -> a 226parEval :: forall a -> a -> a -> a
@@ -36,18 +243,25 @@ match'Char :: forall (a :: Type -> Type) -> a Char[0
36'Bool :: Type 243'Bool :: Type
37False :: Bool 244False :: Bool
38True :: Bool 245True :: Bool
39'BoolCase :: forall (a :: Bool -> Type) -> a 'False -> a 'True -> forall (b :: Bool) -> a b 246'BoolCase
247 :: forall (a :: Bool -> Type)
248 -> a 'False -> a 'True -> forall (b :: Bool) -> a b
40match'Bool :: forall (a :: Type -> Type) -> a Bool -> forall b -> a b -> a b 249match'Bool :: forall (a :: Type -> Type) -> a Bool -> forall b -> a b -> a b
41'Ordering :: Type 250'Ordering :: Type
42LT :: Ordering 251LT :: Ordering
43EQ :: Ordering 252EQ :: Ordering
44GT :: Ordering 253GT :: Ordering
45'OrderingCase :: forall (a :: Ordering -> Type) -> a 'LT -> a 'EQ -> a 'GT -> forall (b :: Ordering) -> a b 254'OrderingCase
46match'Ordering :: forall (a :: Type -> Type) -> a Ordering -> forall b -> a b -> a b 255 :: forall (a :: Ordering -> Type)
256 -> a 'LT -> a 'EQ -> a 'GT -> forall (b :: Ordering) -> a b
257match'Ordering
258 :: forall (a :: Type -> Type) -> a Ordering -> forall b -> a b -> a b
47'Nat :: Type 259'Nat :: Type
48Zero :: Nat 260Zero :: Nat
49Succ :: Nat -> Nat 261Succ :: Nat -> Nat
50'NatCase :: forall (a :: Nat -> Type) -> a 0 -> (forall (b :: Nat) -> a ('Succ b)) -> forall (c :: Nat) -> a c 262'NatCase
263 :: forall (a :: Nat -> Type)
264 -> a 0 -> (forall (b :: Nat) -> a ('Succ b)) -> forall (c :: Nat) -> a c
51match'Nat :: forall (a :: Type -> Type) -> a Nat -> forall b -> a b -> a b 265match'Nat :: forall (a :: Type -> Type) -> a Nat -> forall b -> a b -> a b
52primIntToWord :: Int -> Word 266primIntToWord :: Int -> Word
53primIntToFloat :: Int -> Float 267primIntToFloat :: Int -> Float
@@ -76,15 +290,31 @@ negate :: forall a . Num a => a[0
76'List :: Type -> Type 290'List :: Type -> Type
77Nil :: forall a . List a 291Nil :: forall a . List a
78Cons :: forall a . a -> List a -> List a 292Cons :: forall a . a -> List a -> List a
79'ListCase :: forall a . forall (b :: List a -> Type) -> b 'Nil -> (forall (c :: a) (d :: List a) -> b ('Cons c d)) -> forall (e :: List a) -> b e 293'ListCase
80match'List :: forall (a :: Type -> Type) -> (forall b -> a (List b)) -> forall c -> a c -> a c 294 :: forall a
295 . forall (b :: List a -> Type)
296 -> b 'Nil
297 -> (forall (c :: a) (d :: List a) -> b ('Cons c d))
298 -> forall (e :: List a) -> b e
299match'List
300 :: forall (a :: Type -> Type)
301 -> (forall b -> a (List b)) -> forall c -> a c -> a c
81'HList :: List Type -> Type 302'HList :: List Type -> Type
82HNil :: () 303HNil :: ()
83HCons :: forall a (b :: List Type) . a -> HList b -> HList ('Cons a b) 304HCons :: forall a (b :: List Type) . a -> HList b -> HList ('Cons a b)
84'HListCase :: forall (a :: forall (b :: List Type) -> HList b -> Type) -> a 'Nil () -> (forall c (d :: List Type) . forall (e :: c) (f :: HList d) -> a ('Cons c d) ('HCons c d e f)) -> forall (g :: List Type) . forall (h :: HList g) -> a g h 305'HListCase
85match'HList :: forall (a :: Type -> Type) -> (forall (b :: List Type) -> a (HList b)) -> forall c -> a c -> a c 306 :: forall (a :: forall (b :: List Type) -> HList b -> Type)
307 -> a 'Nil ()
308 -> (forall c (d :: List Type)
309 . forall (e :: c) (f :: HList d) -> a ('Cons c d) ('HCons c d e f))
310 -> forall (g :: List Type) . forall (h :: HList g) -> a g h
311match'HList
312 :: forall (a :: Type -> Type)
313 -> (forall (b :: List Type) -> a (HList b)) -> forall c -> a c -> a c
86hlistNilCase :: forall a -> a -> () -> a 314hlistNilCase :: forall a -> a -> () -> a
87hlistConsCase :: forall a (b :: List Type) . forall c -> (a -> HList b -> c) -> HList ('Cons a b) -> c 315hlistConsCase
316 :: forall a (b :: List Type)
317 . forall c -> (a -> HList b -> c) -> HList ('Cons a b) -> c
88------------ tooltips 318------------ tooltips
89testdata/Internals.lc 6:1-6:8 forall a . a -> a 319testdata/Internals.lc 6:1-6:8 forall a . a -> a
90testdata/Internals.lc 6:13-6:14 _b 320testdata/Internals.lc 6:13-6:14 _b