blob: 741b84f792f2886af347a9c8bdad57dca5393b62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TraceTypeCheck #-}
import Internals
data Inf = Inf Inf
--xx = yy
inf = Inf inf
x = 1
{-
inf2 = inf
main = case inf2 of
Inf _ -> True
data List a = Nil | Cons a (List a)
fromInt x = x :: Int
(-) = primSubInt
repeat n = (n :: Bool): repeat n
repeatT = True: repeatT
--primes :: [Bool]
primes = repeatT
fix
inf = Inf inf
inf' = \fix -> fix (\inf -> unlabel (Inf inf))
-}
{-
(x: _) !! 0 = x
(_ : xs) !! n = xs !! (n-1)
main = -- case 3: [] of x : xs -> x
primes !! 0 -- TODO: 100
-}
|