From 442a1948993ebe89eefe22d80778be25db360873 Mon Sep 17 00:00:00 2001 From: Agatha Lovelace Date: Mon, 13 Dec 2021 19:46:02 +0200 Subject: [PATCH] unneeded imports --- Day13_1.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Day13_1.hs b/Day13_1.hs index 44ce728..b1e7d4f 100644 --- a/Day13_1.hs +++ b/Day13_1.hs @@ -2,8 +2,7 @@ module Day13_1 where import System.IO (openFile) import Data.Text (unpack, splitOn, pack) import Prelude hiding (splitAt) -import Data.Char (digitToInt) -import Data.List (nub, transpose) +import Data.List (nub) splitAt :: String -> String -> [String] splitAt delimiter str = map unpack $ splitOn (pack delimiter) $ pack str @@ -45,4 +44,4 @@ main = do let display x | x `elem` result = '#' | otherwise = ' ' - in putStrLn $ insert (width+1) '\n' $ map display field \ No newline at end of file + in putStrLn $ insert (width+1) '\n' $ map display field