From 06beadfdc948a5f92c4e181510692e47f79b110c Mon Sep 17 00:00:00 2001
From: karchnu <karchnu@karchnu.fr>
Date: Sat, 16 Jan 2016 01:34:17 +0100
Subject: [PATCH] =?UTF-8?q?columnv5=20en=207=20lignes=20=3D>=20FUCK=20LA?=
 =?UTF-8?q?=20LISIBILIT=C3=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 haskell/columnv5.hs | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 haskell/columnv5.hs

diff --git a/haskell/columnv5.hs b/haskell/columnv5.hs
new file mode 100644
index 0000000..0cf9a64
--- /dev/null
+++ b/haskell/columnv5.hs
@@ -0,0 +1,7 @@
+import Data.List as L
+
+main = do
+    content <- getContents
+    putStr $ unlines $ map unwords $ L.transpose $ map formatLine $ L.transpose $ completeMatrix $ map words $ lines content
+    where completeMatrix m = map (\e -> e ++ [""| _ <- [length e .. (\ x -> maximum $ map length x) m ]]) m
+          formatLine x = map (\e -> e ++ [' ' | _ <- [length e..(\ x -> maximum $ map length x) x]]) x