sourcephile
/
git
/
majurity.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
protocol: fix hash (remove last comma)
[majurity.git]
/
hjugement
/
test
/
HUnit
/
Utils.hs
1
module HUnit.Utils where
2
import Data.Bool
3
import Data.List
4
import Data.String (String)
5
import Data.Ord (Ord(..))
6
7
elide :: String -> String
8
elide s | length s > 42 = take 42 s ++ ['…']
9
| otherwise = s