CurryInfo: currycheck-4.0.0 / CurryCheck.cleanup

definition:
cleanup :: Options -> String -> [TestModule] -> IO ()
cleanup opts mainmod modules =
  unless (optKeep opts) $ do
    removeCurryModule mainmod
    mapM_ removeCurryModule (map testModuleName modules)
 where
  removeCurryModule modname =
    lookupModuleSourceInLoadPath modname >>=
    maybe (return ())
          (\ (_,srcfilename) -> do
            system $ installDir </> "bin" </> "cleancurry" ++ " " ++ modname
            system $ "rm -f " ++ srcfilename
            return () )
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
-------------------------------------------------------------------------
-- remove the generated files (except if option "--keep" is set)
indeterministic:
referentially transparent operation
infix:
no fixity defined
name:
cleanup
precedence:
no precedence defined
result-values:
_
signature:
CC.Options.Options -> String -> [TestModule] -> Prelude.IO ()
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term