Safe Haskell | None |
---|
- 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 aSource
Perform an action with the working directory set to path
.
data ModuleResult Source
doResult :: (ModuVerse m, MonadDryRun m, MonadVerbosity m) => ModuleResult -> m ModuleResultSource
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.
fixExport :: [ModuleName] -> ModuleName -> ModuleName -> ExportSpec l -> String -> String -> String -> Seq String -> Seq StringSource
Update an export spec. The only thing we might need to change is re-exports, of the form module Foo.