haskell-formatter-0.1.0: Haskell source code formatter

Safe HaskellSafe-Inferred

Language.Haskell.Formatter.Internal.MapTree

Description

 

Documentation

data MapTree k a Source

Constructors

Leaf a 
Node (MapForest k a) 

Instances

Functor (MapTree k) 
(Eq k, Eq a) => Eq (MapTree k a) 
(Ord k, Ord a) => Ord (MapTree k a) 
(Show k, Show a) => Show (MapTree k a) 

type MapForest k a = Map k (MapTree k a)Source

isEmpty :: MapTree k a -> BoolSource

summarizeLeaves :: (Ord k, Monoid b) => MapForest k (Either a b) -> MapTree k (Either a (Map k b))Source

indentTree :: MapTree String String -> StringSource