Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- customPrint :: [String] -> IO()
- customPrint xs = printf "%7d: %s\n" (length xs) trimmed
- where
- s = intercalate " " ((\x -> "\"" ++ x ++ "\"") <$> xs)
- trimmed = if length s > 127 then (take 127 s) ++ "..." else s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement