update comment and cosmetic about "import"/"delegate"
[pdns-pipe-nmc.git] / test.hs
diff --git a/test.hs b/test.hs
index 6f98fc677359edce6dabda7fe631a640a19ff247..3a9f8b4e0c4c2c92d4858fbdafbaa9dbf547ff26 100644 (file)
--- a/test.hs
+++ b/test.hs
@@ -8,6 +8,7 @@ import Data.ByteString.Lazy (ByteString)
 import Data.ByteString.Lazy.Char8 (readFile)
 import System.IO.Error
 import Control.Exception
+import Text.Show.Pretty
 
 import NmcDom
 import NmcTransform
@@ -18,6 +19,5 @@ queryOp key = catch (readFile key >>= return . Right)
 
 main = do
         (d:_) <- getArgs
-        descendNmcDom queryOp []               (seedNmcDom d) >>= print
-        descendNmcDom queryOp ["_tcp","_smtp"] (seedNmcDom d) >>= print
+        descendNmcDom queryOp [] (seedNmcDom d) >>= putStrLn . ppShow