Advertisement
Guest User

Untitled

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