-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | A command line program for extending the import list of a Haskell source file.
--
-- A command line program for extending the import list of a Haskell
-- source file.
@package hsimport
@version 0.7
module HsImport.ImportPos
-- | Returns the position where the import declaration for the new import
-- should be put into the list of import declarations.
findImportPos :: ImportDecl -> [ImportDecl] -> Maybe ImportPos
-- | Where a new import declaration should be added.
data ImportPos
-- | before the specified import declaration
Before :: ImportDecl -> ImportPos
-- | after the specified import declaration
After :: ImportDecl -> ImportPos
-- | Returns all import declarations having the same module name.
matchingImports :: ModuleName -> [ImportDecl] -> [ImportDecl]
-- | Returns the best matching import declaration for the given module
-- name. E.g. if the module name is Foo.Bar.Boo, then
-- Foo.Bar is considered better matching than Foo.
bestMatchingImport :: ModuleName -> [ImportDecl] -> Maybe ImportDecl
instance GHC.Classes.Eq HsImport.ImportPos.ImportPos
instance GHC.Show.Show HsImport.ImportPos.ImportPos
module HsImport.Args
data HsImportArgs
HsImportArgs :: String -> String -> Bool -> [String] -> String -> String -> FilePath -> FilePath -> HsImportArgs
[moduleName] :: HsImportArgs -> String
[symbolName] :: HsImportArgs -> String
[all] :: HsImportArgs -> Bool
[with] :: HsImportArgs -> [String]
[qualifiedName] :: HsImportArgs -> String
[as] :: HsImportArgs -> String
[inputSrcFile] :: HsImportArgs -> FilePath
[outputSrcFile] :: HsImportArgs -> FilePath
hsImportArgs :: IO HsImportArgs
defaultArgs :: HsImportArgs
instance GHC.Classes.Eq HsImport.Args.HsImportArgs
instance GHC.Show.Show HsImport.Args.HsImportArgs
instance Data.Data.Data HsImport.Args.HsImportArgs
module HsImport.Config
-- | User definable configuration for hsImport.
data Config
Config :: (ImportDecl -> String) -> (ImportDecl -> [ImportDecl] -> Maybe ImportPos) -> Maybe String -> Config
-- | function for pretty printing of the import declarations
[prettyPrint] :: Config -> ImportDecl -> String
-- | function for finding the position of new import declarations
[findImportPos] :: Config -> ImportDecl -> [ImportDecl] -> Maybe ImportPos
-- | error during configuration of hsimport
[configError] :: Config -> Maybe String
defaultConfig :: Config
module HsImport.Main
hsimport :: Config -> IO ()
hsimportWithArgs :: Config -> HsImportArgs -> IO (Maybe Error)
module HsImport
-- | Where a new import declaration should be added.
data ImportPos
-- | before the specified import declaration
Before :: ImportDecl -> ImportPos
-- | after the specified import declaration
After :: ImportDecl -> ImportPos