Safe Haskell | None |
---|---|
Language | Haskell98 |
- groupBy' :: Ord a => (a -> a -> Ordering) -> [a] -> [[a]]
- withCurrentDirectory :: (MonadIO m, MonadBaseControl IO m) => FilePath -> m a -> m a
- data ModuleResult
- doResult :: (ModuVerse m, MonadDryRun m, MonadVerbosity m) => ModuleResult -> m ModuleResult
- reportResult :: ModuleResult -> String
- fixExport :: [ModuleName] -> ModuleName -> ModuleName -> ExportSpec l -> String -> String -> String -> Seq String -> Seq String
Documentation
withCurrentDirectory :: (MonadIO m, MonadBaseControl IO m) => FilePath -> m a -> m a Source
Perform an action with the working directory set to path
.
data ModuleResult Source
doResult :: (ModuVerse m, MonadDryRun m, MonadVerbosity m) => ModuleResult -> m ModuleResult Source
It is tempting to put import cleaning into these operations, but that needs to be done after all of these operations are completed so that all the compiles required for import cleaning succeed. On the other hand, we might be able to maintain the moduVerse here.
reportResult :: ModuleResult -> String Source
fixExport :: [ModuleName] -> ModuleName -> ModuleName -> ExportSpec l -> String -> String -> String -> Seq String -> Seq String Source
Update an export spec. The only thing we might need to change is re-exports, of the form "module Foo".