Format
This commit is contained in:
parent
31082a85d5
commit
a3f91606f7
@ -184,8 +184,9 @@ adjacentPairs = \case
|
|||||||
sortPair :: (Ord a) => (a, a) -> (a, a)
|
sortPair :: (Ord a) => (a, a) -> (a, a)
|
||||||
sortPair (a, b) = if a <= b then (a, b) else (b, a)
|
sortPair (a, b) = if a <= b then (a, b) else (b, a)
|
||||||
|
|
||||||
-- | This is `Data.Tree.drawTree` with the ASCII characters replaced with Unicode box drawing characters,
|
{- | This is `Data.Tree.drawTree` with the ASCII characters replaced with Unicode box drawing characters,
|
||||||
-- and using `Text` instead of `String`.
|
and using `Text` instead of `String`.
|
||||||
|
-}
|
||||||
drawTree :: Tree Text -> Text
|
drawTree :: Tree Text -> Text
|
||||||
drawTree = T.unlines . draw
|
drawTree = T.unlines . draw
|
||||||
where
|
where
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user