]> www.average.org Git - pdns-pipe-nmc.git/blobdiff - test.hs
handle (and test) imports
[pdns-pipe-nmc.git] / test.hs
diff --git a/test.hs b/test.hs
index 8f5b77c330a53812d4a2e7b81f8a847e3faed911..966186f62ef379ee6e39c3a7be31420efbbde670 100644 (file)
--- a/test.hs
+++ b/test.hs
@@ -11,10 +11,10 @@ import Control.Exception
 import NmcDom
 
 queryOp :: ByteString -> IO (Either String ByteString)
-queryOp key = catch (readFile ("d/" ++ (unpack key)) >>= return . Right)
+queryOp key = catch (readFile (unpack key) >>= return . Right)
                     (\e -> return (Left (show (e :: IOException))))
 
 main = do
-        d <- queryDom queryOp "root"
+        d <- mergeImport queryOp (emptyNmcDom {domImport = Just "d/root"})
         putStrLn $ show d