]> gitweb.michael.orlitzky.com - hath.git/commitdiff
Updated the Reduce action to call combine_all on the Cidr list.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 8 May 2010 16:46:45 +0000 (12:46 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 8 May 2010 16:46:45 +0000 (12:46 -0400)
src/Main.hs

index 2fdcfd0459c1b2c88ecd2980e6de90a4a709cd95..7017a191b85530f639b822acd19b5143fb8cf5ee 100644 (file)
@@ -3,7 +3,8 @@ import System.Exit (ExitCode(..), exitWith)
 import System.IO (stderr, hPutStrLn)
 
 import Cidr (Cidr(..),
-             cidr_from_string)
+             cidr_from_string,
+             combine_all)
 
 import CommandLine (help_set,
                     help_text,
@@ -122,4 +123,5 @@ main = do
         let regexes = map cidr_to_regex cidrs
         putStrLn $ alternate regexes
     Reduce -> do
-        putStr input
+        mapM (putStrLn . show) (combine_all cidrs)
+        return ()