Safe Haskell | None |
---|---|
Language | Haskell2010 |
GHCup.OptParse.Install
Documentation
data InstallCommand Source #
Constructors
InstallGHC InstallOptions | |
InstallCabal InstallOptions | |
InstallHLS InstallOptions | |
InstallStack InstallOptions |
Instances
Show InstallCommand Source # | |
Defined in GHCup.OptParse.Install Methods showsPrec :: Int -> InstallCommand -> ShowS # show :: InstallCommand -> String # showList :: [InstallCommand] -> ShowS # | |
Eq InstallCommand Source # | |
Defined in GHCup.OptParse.Install Methods (==) :: InstallCommand -> InstallCommand -> Bool # (/=) :: InstallCommand -> InstallCommand -> Bool # |
data InstallOptions Source #
Constructors
InstallOptions | |
Fields
|
Instances
Show InstallOptions Source # | |
Defined in GHCup.OptParse.Install Methods showsPrec :: Int -> InstallOptions -> ShowS # show :: InstallOptions -> String # showList :: [InstallOptions] -> ShowS # | |
Eq InstallOptions Source # | |
Defined in GHCup.OptParse.Install Methods (==) :: InstallOptions -> InstallOptions -> Bool # (/=) :: InstallOptions -> InstallOptions -> Bool # |
installOpts :: Maybe Tool -> Parser InstallOptions Source #
type InstallEffects = '[AlreadyInstalled, UnknownArchive, ArchiveResult, FileDoesNotExistError, CopyError, NotInstalled, DirNotEmpty, NoDownload, NotInstalled, BuildFailed, TagNotFound, DayNotFound, DigestError, ContentLengthError, GPGError, DownloadFailed, TarDirDoesNotExist, NextVerNotFound, NoToolVersionSet, FileAlreadyExistsError, ProcessError, UninstallFailed, MergeFileTreeError, InstallSetError, URIParseError] Source #
runInstTool :: AppState -> Excepts InstallEffects (ResourceT (ReaderT AppState IO)) a -> IO (VEither InstallEffects a) Source #
type InstallGHCEffects = '[AlreadyInstalled, ArchiveResult, BuildFailed, CopyError, DigestError, ContentLengthError, DirNotEmpty, DownloadFailed, FileAlreadyExistsError, FileDoesNotExistError, GPGError, MergeFileTreeError, NextVerNotFound, NoDownload, NoToolVersionSet, NotInstalled, ProcessError, TagNotFound, DayNotFound, TarDirDoesNotExist, UninstallFailed, UnknownArchive, InstallSetError, NoCompatiblePlatform, ParseError, UnsupportedSetupCombo, DistroNotFound, NoCompatibleArch, URIParseError] Source #
runInstGHC :: AppState -> Excepts InstallGHCEffects (ResourceT (ReaderT AppState IO)) a -> IO (VEither InstallGHCEffects a) Source #
install :: Either InstallCommand InstallOptions -> Settings -> IO AppState -> (ReaderT LeanAppState IO () -> IO ()) -> IO ExitCode Source #