blob: f97b6f6a0f6d46f9f26ee384f1bdebe196bd0620 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#!/bin/csh
#
# savesys -- build a saved executable in bin/new-lispworks-haskell
#
#
cd $Y2
setenv PRELUDEBIN $Y2/progs/prelude/lispworks
if !(-e $PRELUDEBIN/Prelude.wfasl) then
echo "Build the prelude first, stupid..."
exit
endif
$LISPWORKS <<EOF
;;; Load the Haskell system.
(load "com/lispworks/patches/safe-fo-closure.wfasl")
(make-package "MUMBLE-IMPLEMENTATION" :use '("LISP"))
(load "cl-support/cl-init")
;;; Set various internal switches to appropriate values for running
;;; Haskell code.
(proclaim '(optimize (speed 3) (safety 0) (compilation-speed 0)))
(setf *load-verbose* nil)
(setf *compile-verbose* nil)
(in-package :mumble-user)
(setf *printers* '(compiling loading))
(setf *optimizers* '())
(setf *compile-interface* '#f)
;;; Load the prelude
(compile/load *prelude-unit-filename*)
;;; Set up the saved system.
(define (haskell-toplevel)
;; Need to reset pathname defaults
(setf lisp:*default-pathname-defaults* (lisp:truename ""))
(load-init-files)
(do () ('#f)
(lisp:with-simple-restart (restart-haskell "Restart Haskell.")
(heval))))
(define (restart-haskell)
(lisp:invoke-restart 'restart-haskell))
(lw:save-image "bin/new-lispworks-haskell"
:gc '#t
:normal-gc '#f ; don't reset gc parameters
:restart-function 'haskell-toplevel)
(lw:bye)
EOF
|