def stackage(self, rplugin: StackageRplugin) -> NvimIO[ActiveRplugin]: return activate_stack_plugin(rplugin, Path.home())
def hackage(self, rplugin: HackageRplugin) -> NvimIO[ActiveRplugin]: return activate_cabal_plugin(rplugin, Path.home())
def default_venv_dir() -> Do: xdg_cache_path = xdg_cache_home.value / Path | (Path.home() / '.cache') venv_dir = xdg_cache_path / 'chromatin' / 'venvs' yield Try(venv_dir.mkdir, parents=True, exist_ok=True).lmap(lambda a: create_venv_dir_error(venv_dir)) yield Right(venv_dir)