]> www.average.org Git - pdns-pipe-nmc.git/blobdiff - test.hs
move test functionality into main program
[pdns-pipe-nmc.git] / test.hs
diff --git a/test.hs b/test.hs
deleted file mode 100644 (file)
index 3a9f8b4..0000000
--- a/test.hs
+++ /dev/null
@@ -1,23 +0,0 @@
-{-# LANGUAGE OverloadedStrings #-}
-
-module Main where
-
-import Prelude hiding (readFile)
-import System.Environment
-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
-
-queryOp :: String -> IO (Either String ByteString)
-queryOp key = catch (readFile key >>= return . Right)
-                    (\e -> return (Left (show (e :: IOException))))
-
-main = do
-        (d:_) <- getArgs
-        descendNmcDom queryOp [] (seedNmcDom d) >>= putStrLn . ppShow
-