Skip to content

Commit 12e8276

Browse files
committed
Initial Import
darcs-hash:20081231153512-ed0c4-dad2543e05679f5ba51e84c34ee38c02c05f529d
0 parents  commit 12e8276

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+4798
-0
lines changed

LskPrelude/LskPrelude.lsk

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

LskPrelude/Makefile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
PACKAGE=LskPrelude
2+
VERSION=0.1
3+
4+
LskPrelude.o:
5+
liskell -package-name LskPrelude -package ghc -package liskell --make LskPrelude
6+
libHSLskPrelude.a:
7+
ar r libHSLskPrelude.a LskPrelude.o
8+
9+
HSLskPrelude.o:
10+
ld -r -o HSLskPrelude.o LskPrelude.o
11+
12+
.PHONY: install
13+
14+
install-inplace: package.conf.inplace libHSLskPrelude.a HSLskPrelude.o
15+
ghc-pkg update package.conf.inplace
16+
17+
PACKAGE_CPP_OPTS += -DPACKAGE=${PACKAGE}
18+
PACKAGE_CPP_OPTS += -DVERSION=${VERSION}
19+
20+
IMPORT_DIR_INPLACE=${PWD}
21+
LIB_DIR_INPLACE=${PWD}
22+
23+
DEPENDS += $(shell ghc-pkg latest ghc)
24+
DEPENDS += $(shell ghc-pkg latest base)
25+
26+
package.conf.inplace : package.conf.in
27+
$(CPP) $(RAWCPP_FLAGS) -P \
28+
-DIMPORT_DIR='"$(IMPORT_DIR_INPLACE)"' \
29+
-DLIB_DIR='"$(LIB_DIR_INPLACE)"' \
30+
-DINCLUDE_DIR='"$(INCLUDE_DIR_INPLACE)"' \
31+
-DDATA_DIR='"$(DATA_DIR_INPLACE)"' \
32+
-DHTML_DIR='"$(HTML_DIR_INPLACE)"' \
33+
-DDEPENDS='$(DEPENDS)' \
34+
-DHADDOCK_IFACE='"$(HADDOCK_IFACE_INPLACE)"' \
35+
-DFPTOOLS_TOP_ABS='"${FPTOOLS_TOP_ABS}"' \
36+
-x c $(PACKAGE_CPP_OPTS) $< | \
37+
grep -v '^#pragma GCC' | \
38+
sed -e 's/""//g' -e 's/:[ ]*,/: /g' >$@
39+
40+
clean:
41+
rm LskPrelude.hi LskPrelude.o libHSLskPrelude.a HSLskPrelude.o package.conf.inplace
42+

LskPrelude/package.conf.in

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PACKAGE
2+
version: VERSION
3+
license: BSD3
4+
maintainer: [email protected]
5+
exposed: True
6+
7+
exposed-modules:
8+
LskPrelude
9+
10+
hidden-modules:
11+
12+
import-dirs: IMPORT_DIR
13+
library-dirs: LIB_DIR
14+
hs-libraries: "HSLskPrelude"
15+
extra-libraries:
16+
include-dirs:
17+
includes:
18+
depends: DEPENDS
19+
hugs-options:
20+
cc-options:
21+
ld-options:
22+
framework-dirs:
23+
frameworks:
24+
haddock-interfaces: HADDOCK_IFACE
25+
haddock-html: HTML_DIR

Setup.lhs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#! /usr/bin/env runhaskell
2+
3+
> import Distribution.Simple
4+
> main = defaultMain

testsuite/.darcs-boring

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Boring file regexps:
2+
\.hi$
3+
\.o$
4+
\.p_hi$
5+
\.p_o$
6+
\.a$
7+
\.o\.cmd$
8+
\.ko$
9+
\.ko\.cmd$
10+
\.mod\.c$
11+
(^|/)\.tmp_versions($|/)
12+
(^|/)CVS($|/)
13+
(^|/)RCS($|/)
14+
~$
15+
#(^|/)\.[^/]
16+
(^|/)_darcs($|/)
17+
\.bak$
18+
\.BAK$
19+
\.orig$
20+
(^|/)vssver\.scc$
21+
\.swp$
22+
(^|/)MT($|/)
23+
(^|/)\{arch\}($|/)
24+
(^|/).arch-ids($|/)
25+
(^|/),
26+
\.class$
27+
\.prof$
28+
(^|/)\.DS_Store$
29+
(^|/)BitKeeper($|/)
30+
(^|/)ChangeSet($|/)
31+
(^|/)\.svn($|/)
32+
\.py[co]$
33+
\#
34+
\.cvsignore$
35+
(^|/)Thumbs\.db$
36+
\.comp\.stderr$
37+
\.interp\.stdout$
38+
\.interp\.stderr$
39+
\.run\.stdout$
40+
\.run\.stderr$
41+
\.out$
42+
\.out[12]$
43+
\.inout$
44+
\.hc$
45+
[0-9][0-9][0-9]$
46+
_stub.[hc]$

testsuite/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
TOP = .
2+
include $(TOP)/mk/boilerplate.mk
3+
4+
SUBDIRS = timeout
5+
6+
CLEAN_FILES += mk/wordsize.mk
7+
8+
all ::
9+
cd tests/liskell && $(MAKE) $(MFLAGS)
10+
11+
include $(TOP)/mk/target.mk

0 commit comments

Comments
 (0)