summaryrefslogtreecommitdiff
path: root/lengthComp.hs
blob: e4457d2de13801a036b5f4cfe7dd071f8d9be875 (plain)
1
2
3
4
import Data.Monoid

lengthComp :: String -> String -> Ordering
lengthComp x y = (length x `compare` length y) `mappend` (x `compare` y)