We can now print strings :)
This commit is contained in:
parent
3755d41b59
commit
8ddb0ed052
6 changed files with 52 additions and 27 deletions
|
|
@ -205,5 +205,9 @@ prelude =
|
|||
, "\n"
|
||||
, "printStr xs = case xs of"
|
||||
, " Nil => Nil"
|
||||
, " Cons x xs => Cons (print x) (printStr xs)"
|
||||
, " Cons x xs => Cons (printChar x) (printStr xs)"
|
||||
, "\n"
|
||||
, "data List a where"
|
||||
, " Cons : a -> List a -> List a"
|
||||
, " Nil : List a"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue