;;;; type-errors-basic.scm -*- Scheme -*- ;;;; Kon Lovett, Jul '18 (declare (bound-to-procedure ##sys#signal-hook ##sys#error-hook) ) (module type-errors-basic (;export ; (define-error-type error-argument-type) ; make-bad-argument-message make-type-name-message make-error-type-message ; signal-bounds-error signal-type-error ; error-argument-type warning-argument-type ; error-bound-value error-defined-value ; error-minimum-argument-count error-argument-count) (import scheme) (import (chicken base)) (import (chicken type)) (import (only (chicken string) ->string conc)) (import (chicken foreign)) (: make-bad-argument-message (#!optional * -> string)) (: make-type-name-message (* -> string)) (: make-error-type-message (string #!optional * -> string)) (: signal-bounds-error (* #!rest -> noreturn)) (: signal-type-error (* #!rest -> noreturn)) (: error-argument-type (* * * #!optional * -> noreturn)) (: warning-argument-type (* * * #!optional * -> noreturn)) (: error-bound-value (* * #!optional * -> noreturn)) (: error-defined-value (* * #!optional * -> noreturn)) (: error-minimum-argument-count (* fixnum fixnum -> noreturn)) (: error-argument-count (* fixnum fixnum -> noreturn)) (include "type-errors-basic.impl.scm") ) ;module type-errors-basic