Browse Source

a bunch of types and declarations, adopt the prefix that unboxed types are declared as Intrinsic for now

pull/18/head
nisstyre56 10 years ago
parent
commit
d36a8fe0d9
  1. 20
      prelude.jl

20
prelude.jl

@ -7,3 +7,23 @@ deftype String (List Char)
deftype (List a)
(Empty |
(Cons a (List a)))
deftype Int Intrinsic
deftype Float Intrinsic
deftype Char Intrinsic
deftype Byte Intrinsic
deftype Void Intrinsic
(map :: ((a -> b) -> (List a) -> (List b)))
(head :: ((List a) -> a))
(tail :: ((List a) -> (List a)))
(!! :: (Int -> (List a) -> a))
(print :: (String -> (IO Void)))

Loading…
Cancel
Save