diff --git a/app/Main.hs b/app/Main.hs index a6269da..88e9654 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -28,13 +28,13 @@ parseInputLine :: Int -> String -> Either ParseError Expression parseInputLine n s = parseFullString ("stdin:" ++ show n) s title :: [String] -> String -title ns = " " ++ intercalate " | " ns +title ns = " " ++ intercalate " # " ns header :: [Int] -> String -header ws = intercalate "|" . map (flip replicate '-' . (+2) ) $ ws +header ws = intercalate "#" . map (flip replicate '#' . (+2) ) $ ws row :: [Int] -> [Bool] -> String -row ws rs = intercalate "|" $ (zipWith row' ws rs) +row ws rs = intercalate "#" $ (zipWith row' ws rs) where row' :: Int -> Bool -> String row' w b = replicate (left+1) ' ' ++ (if b then "1" else "0") ++ replicate (right+1) ' '