Import hs-plugins cvs
This commit is contained in:
15
examples/hier/hier2/prog/Main.hs
Normal file
15
examples/hier/hier2/prog/Main.hs
Normal 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)
|
1
examples/hier/hier2/prog/expected
Normal file
1
examples/hier/hier2/prog/expected
Normal file
@ -0,0 +1 @@
|
||||
"You found me"
|
Reference in New Issue
Block a user