;;; Copyright (C) 2025 Free Software Foundation, Inc. ;;; ;;; This library is free software: you can redistribute it and/or modify ;;; it under the terms of the GNU Lesser General Public License as ;;; published by the Free Software Foundation, either version 3 of the ;;; License, or (at your option) any later version. ;;; ;;; This library is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;;; Lesser General Public License for more details. ;;; ;;; You should have received a copy of the GNU Lesser General Public ;;; License along with this program. If not, see ;;; . ;;; Commentary: ;;; ;;; ;;; Code: (define-module (system repl hooks) ;; FIXME: #:export instead of #:replace once deprecated code is ;; removed. #:replace (before-error-hook after-error-hook before-read-hook after-read-hook before-eval-hook after-eval-hook before-print-hook after-print-hook exit-hook)) (define before-error-hook (make-hook)) (define after-error-hook (make-hook)) (define before-read-hook (make-hook)) (define after-read-hook (make-hook)) (define before-eval-hook (make-hook 1)) (define after-eval-hook (make-hook 1)) (define before-print-hook (make-hook 1)) (define after-print-hook (make-hook 1)) (define exit-hook (make-hook))