importify-1.0: Tool for haskell imports refactoring

Safe HaskellNone
LanguageHaskell2010

Importify.Cabal.Module

Description

Functions to operate with exposed-modules and other-modules parts of .cabal file.

Synopsis

Documentation

modulePaths Source #

Arguments

:: Path Abs Dir

Absolute path to project directory

-> BuildInfo

BuildInfo for given target

-> Either [ModuleName] FilePath

Modules for Library and path for others

-> IO [Path Abs File] 

Returns list of absolute paths to all modules inside given target.

splitOnExposedAndOther :: Library -> [Module l] -> ([Module l], [Module l]) Source #

Split list of modules into exposed modules and other modules for given library. First element of pair represents exposed modules. Second element of paris represents other modules.