From 3b109960e1d7eaaf4ef3deef6a4936f2ac6a96d8 Mon Sep 17 00:00:00 2001 From: David Waern Date: Wed, 21 Jul 2010 15:11:33 +0000 Subject: Whitespace police --- src/Haddock/ModuleTree.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Haddock') diff --git a/src/Haddock/ModuleTree.hs b/src/Haddock/ModuleTree.hs index 61812e3a..2a7fbfcc 100644 --- a/src/Haddock/ModuleTree.hs +++ b/src/Haddock/ModuleTree.hs @@ -23,7 +23,7 @@ data ModuleTree = Node String Bool (Maybe String) (Maybe (Doc Name)) [ModuleTree mkModuleTree :: Bool -> [(Module, Maybe (Doc Name))] -> [ModuleTree] -mkModuleTree showPkgs mods = +mkModuleTree showPkgs mods = foldr fn [] [ (splitModule mdl, modPkg mdl, short) | (mdl, short) <- mods ] where modPkg mod_ | showPkgs = Just (packageIdString (modulePackageId mod_)) @@ -52,5 +52,5 @@ mkSubTree (s:ss) pkg short = [Node s (null ss) Nothing Nothing (mkSubTree ss pkg splitModule :: Module -> [String] splitModule mdl = split (moduleNameString (moduleName mdl)) where split mod0 = case break (== '.') mod0 of - (s1, '.':s2) -> s1 : split s2 - (s1, _) -> [s1] + (s1, '.':s2) -> s1 : split s2 + (s1, _) -> [s1] -- cgit v1.2.3