nicify 1.0 → 1.1
raw patch · 2 files changed
+15/−3 lines, 2 files
Files
- nicify.cabal +2/−2
- src/nicify.hs +13/−1
nicify.cabal view
@@ -1,5 +1,5 @@ Name: nicify-Version: 1.0+Version: 1.1 Synopsis: Pretty print the standard output of show for algebraic datatypes Description: Pretty print the standard output of show for algebraic datatypes @@ -9,7 +9,7 @@ Maintainer: Julian Fleischer <julian.fleischer@fu-berlin.de> Build-Type: Simple Cabal-Version: >= 1.8-Category: Text, Tools+Category: Text, Tools, Utilities Stability: stable Source-Repository head
src/nicify.hs view
@@ -1,3 +1,15 @@ import Text.Nicify+import System.Environment (getArgs) -main = interact nicify+main = do+ args <- getArgs+ main' args++main' [] = interact nicify++main' (x:[]) = do+ contents <- readFile x+ putStr (nicify contents)++main' (x:xs) = main' [x] >> main' xs+