Import hs-plugins cvs

This commit is contained in:
Don Stewart
2005-04-24 08:51:33 +00:00
commit 887fa59389
494 changed files with 23721 additions and 0 deletions

View File

@ -0,0 +1,8 @@
--
-- A simple module
--
module A.B.C.Module where
symbol = "You found me"

View File

@ -0,0 +1,7 @@
all:
ghc -c B/C/Module.hs
clean:
rm -f B/C/*.hi B/C/*.o

View File

@ -0,0 +1,7 @@
TEST= hier/hier2
PRIOR_OBJS=A/B/C/Module.o
EXTRAFLAGS=
TOP=../../..
include ../../build.mk

View File

@ -0,0 +1,4 @@
module API where
-- just a dummy for the build system

View File

@ -0,0 +1,15 @@
--
-- Test if we can load a module with a hierarchical name from some weird
-- path. Tests our the module name handling in the .hi file parser.
--
module Main where
import Plugins
main = do
status <- load "../A/B/C/Module.o" [".."] [] "symbol"
case status of
LoadFailure ers -> mapM_ putStrLn ers
LoadSuccess _ v -> print (v :: String)

View File

@ -0,0 +1 @@
"You found me"