-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Present the module dependencies of a program as a "dot" graph. -- -- This package contains a program that computes "dot" graphs from the -- dependencies of a number of Haskell modules. @package graphmod @version 1.4.5.1 module Graphmod.Utils -- | Get the imports of a file. parseFile :: FilePath -> IO (ModName, [Import]) -- | Get the imports from a string that represents a program. parseString :: String -> (ModName, [Import]) -- | A hierarchical module name. We make this an opaque type with accessors -- qualifierNodes and fromHierarchy so that we can -- transparently add new structure to this type. data Qualifier qualifierNodes :: Qualifier -> [String] fromHierarchy :: [String] -> Qualifier data Import Import :: ModName -> ImpType -> Import [impMod] :: Import -> ModName [impType] :: Import -> ImpType data ImpType NormalImp :: ImpType SourceImp :: ImpType -- | Convert a string name into a hierarchical name qualifier. splitQualifier :: String -> Qualifier type ModName = (Qualifier, String) -- | Convert a string name into a hierarchical name. It is important that -- --
--   f elem ((relPaths . splitFilePath) f)
--   
splitModName :: String -> ModName joinModName :: ModName -> String -- | The files in which a module might reside. relPaths :: ModName -> [FilePath] -- | The files in which a module might reside. We report only files that -- exist. modToFile :: [FilePath] -> ModName -> IO [FilePath] suffixes :: [String] instance GHC.Classes.Ord Graphmod.Utils.ImpType instance GHC.Classes.Eq Graphmod.Utils.ImpType instance GHC.Show.Show Graphmod.Utils.ImpType instance GHC.Classes.Eq Graphmod.Utils.Qualifier instance GHC.Show.Show Graphmod.Utils.Qualifier instance GHC.Classes.Eq Graphmod.Utils.Import instance GHC.Show.Show Graphmod.Utils.Import module Graphmod graphmod :: [String] -> IO () instance GHC.Show.Show Graphmod.Input instance GHC.Classes.Ord Graphmod.NodeT instance GHC.Classes.Eq Graphmod.NodeT instance GHC.Show.Show Graphmod.NodeT instance GHC.Show.Show Graphmod.IgnoreSpec