on master help sign in
Make it compile, and use a List instead of a Vect
a30a9c1Reynir Reynisson
lib/Prelude/Chars.idr+1−2
@@ -1,7 +1,6 @@
1module Prelude.Char
1module Prelude.Char
2
2
3import Builtins
3import Builtins
4−import Prelude.Vect
5
4
6isUpper : Char -> Bool
5isUpper : Char -> Bool
7isUpper x = x >= 'A' && x <= 'Z'
6isUpper x = x >= 'A' && x <= 'Z'
@@ -38,7 +37,7 @@ toLower x = if (isUpper x)
38
37
39isHexDigit : Char -> Bool
38isHexDigit : Char -> Bool
40isHexDigit x = elem (toUpper x) hexChars where
39isHexDigit x = elem (toUpper x) hexChars where
41− hexChars : Vect 16 Char
40+ hexChars : List Char
42 hexChars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
41 hexChars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
43 'A', 'B', 'C', 'D', 'E', 'F']
42 'A', 'B', 'C', 'D', 'E', 'F']
44
43
lib/base.ipkg+1−1
@@ -7,7 +7,7 @@ modules = Builtins, Prelude, IO, System,
7 Prelude.List, Prelude.Maybe, Prelude.Monad, Prelude.Applicative,
7 Prelude.List, Prelude.Maybe, Prelude.Monad, Prelude.Applicative,
8 Prelude.Either, Prelude.Vect, Prelude.Strings, Prelude.Chars,
8 Prelude.Either, Prelude.Vect, Prelude.Strings, Prelude.Chars,
9 Prelude.Heap, Prelude.Complex, Prelude.Functor, Prelude.Foldable,
9 Prelude.Heap, Prelude.Complex, Prelude.Functor, Prelude.Foldable,
10− Prelude.Traversable,
10+ Prelude.Traversable, Prelude.Bits,
11
11
12 Network.Cgi,
12 Network.Cgi,
13 Debug.Trace,
13 Debug.Trace,