Skip to content
Snippets Groups Projects
Commit 9fb621af authored by Yiannis Tsiouris's avatar Yiannis Tsiouris Committed by Iustin Pop
Browse files

Text wrap in Haskell code


This adds two functions in Utils.hs: 'wrap' and 'trim' along with some
simple tests. 'wrap' is used in Common.hs for wrapping command
descriptions to a fixed line length, e.g. useful for the "--help"
option.

Signed-off-by: default avatarYiannis Tsiouris <gtsiour@softlab.ntua.gr>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent d38bef8e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment