on master help sign in
Remove force/lazy

Since they are old style laziness and no longer work :). Also 'repeat' on Lists since it used 'lazy'.

commit00793aceff5e5a433a0180e41e1a32bc78a2107e authorEdwin Brady <ecb10@st-andrews.ac.uk> dateWed 28 May 2014, 15:49 (12 years ago) parent6b69961
2 files changed+1−13
libs/prelude/Builtins.idr+1−6 libs/prelude/Prelude/List.idr−7
libs/prelude/Builtins.idr+1−6
@@ -38,17 +38,12 @@ sym refl = refl
3838trans : {a:x} -> {b:y} -> {c:z} -> a = b -> b = c -> a = c
3939trans refl refl = refl
4040
41−lazy : a -> a
42−lazy x = x -- compiled specially
43−
44−force : a -> a
45−force x = x -- compiled specially
46−
4741||| There are two types of laziness: that arising from lazy functions, and that
4842||| arising from codata. They differ in their totality condition.
4943data LazyType = LazyCodata | LazyEval
5044
5145||| The underlying implementation of Lazy and Inf.
46+%error_reverse
5247data Lazy' : LazyType -> Type -> Type where
5348 ||| A delayed computation.
5449 |||
libs/prelude/Prelude/List.idr−7
@@ -195,13 +195,6 @@ list nil cons (x::xs) = (Force cons) x xs
195195(++) [] right = right
196196(++) (x::xs) right = x :: (xs ++ right)
197197
198−||| Create an infinite sequence of some item.
199−|||
200−||| Consider using a `Stream` instead.
201−partial
202−repeat : a -> List a
203−repeat x = x :: lazy (repeat x)
204−
205198||| Construct a list with `n` copies of `x`
206199||| @ n how many copies
207200||| @ x the element to replicate