fixed some compatibility issue

This commit is contained in:
Mustafa 2014-02-15 13:36:01 -08:00
parent f39067a5d6
commit 4bc9f80310
3 changed files with 19 additions and 3 deletions

View file

@ -16,6 +16,18 @@ Licensed under GPL (2 or 3? FIXME)
(provide (all-defined-out)) (provide (all-defined-out))
;; to fix rnrs compatibility
#|
(define exact inexact->exact)
(define inexact exact->inexact)
(define mod remainder)
|#
;; prelude.scm ;;;;;;;;;;;;;;;;;;;;;; ;; prelude.scm ;;;;;;;;;;;;;;;;;;;;;;
;; enumFromThenTo :: a -> a -> a -> [a] ;; enumFromThenTo :: a -> a -> a -> [a]
@ -383,13 +395,15 @@ Licensed under GPL (2 or 3? FIXME)
(head l) (head l)
(last xs))))) (last xs)))))
;; length :: [a] -> Int ;; mlength :: [a] -> Int
#;(define length (define mlength
(lambda (l) (lambda (l)
(if (null? l) (if (null? l)
0 0
(+ 1 (length (tail l)))))) (+ 1 (length (tail l))))))
;; list1 :: a -> [a] ;; list1 :: a -> [a]
(define list1 (define list1
(lambda (x) (lambda (x)

View file

@ -7,6 +7,7 @@
"../rhs/rhs.rkt" "../rhs/rhs.rkt"
"bytevector.rkt" "bytevector.rkt"
rnrs/bytevectors-6 ;; TODO - should be provided by bytevector.rkt rnrs/bytevectors-6 ;; TODO - should be provided by bytevector.rkt
rnrs/io/ports-6
) )

View file

@ -6,7 +6,8 @@
"sosc.rkt" "sosc.rkt"
"ip.rkt") "ip.rkt")
(provide (all-defined-out)) (provide (all-defined-out)
(all-from-out "ip.rkt"))