ghcup-0.1.14.2: ghc toolchain installer
Copyright(c) Julian Ospald 2020
LicenseLGPL-3.0
Maintainerhasufell@hasufell.de
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

GHCup.Errors

Description

 
Synopsis

Documentation

data NoDownload Source #

Unable to find a download for the requested versio/distro.

Constructors

NoDownload 

Instances

Instances details
Show NoDownload Source # 
Instance details

Defined in GHCup.Errors

Pretty NoDownload Source # 
Instance details

Defined in GHCup.Errors

data NoUpdate Source #

No update available or necessary.

Constructors

NoUpdate 

Instances

Instances details
Show NoUpdate Source # 
Instance details

Defined in GHCup.Errors

Pretty NoUpdate Source # 
Instance details

Defined in GHCup.Errors

data NoCompatibleArch Source #

The Architecture is unknown and unsupported.

Constructors

NoCompatibleArch String 

data DistroNotFound Source #

Unable to figure out the distribution of the host.

Constructors

DistroNotFound 

Instances

Instances details
Show DistroNotFound Source # 
Instance details

Defined in GHCup.Errors

Pretty DistroNotFound Source # 
Instance details

Defined in GHCup.Errors

data UnknownArchive Source #

The archive format is unknown. We don't know how to extract it.

Instances

Instances details
Show UnknownArchive Source # 
Instance details

Defined in GHCup.Errors

Pretty UnknownArchive Source # 
Instance details

Defined in GHCup.Errors

data UnsupportedScheme Source #

The scheme is not supported (such as ftp).

Constructors

UnsupportedScheme 

data CopyError Source #

Unable to copy a file.

Constructors

CopyError String 

Instances

Instances details
Show CopyError Source # 
Instance details

Defined in GHCup.Errors

Pretty CopyError Source # 
Instance details

Defined in GHCup.Errors

data TagNotFound Source #

Unable to find a tag of a tool.

Constructors

TagNotFound Tag Tool 

Instances

Instances details
Show TagNotFound Source # 
Instance details

Defined in GHCup.Errors

Pretty TagNotFound Source # 
Instance details

Defined in GHCup.Errors

data NextVerNotFound Source #

Unable to find the next version of a tool (the one after the currently set one).

Constructors

NextVerNotFound Tool 

data AlreadyInstalled Source #

The tool (such as GHC) is already installed with that version.

data NotInstalled Source #

The tool is not installed. Some operations rely on a tool to be installed (such as setting the current GHC version).

Instances

Instances details
Show NotInstalled Source # 
Instance details

Defined in GHCup.Errors

Pretty NotInstalled Source # 
Instance details

Defined in GHCup.Errors

data NotFoundInPATH Source #

An executable was expected to be in PATH, but was not found.

Constructors

NotFoundInPATH (Path Rel) 

Instances

Instances details
Show NotFoundInPATH Source # 
Instance details

Defined in GHCup.Errors

Pretty NotFoundInPATH Source # 
Instance details

Defined in GHCup.Errors

data JSONError Source #

JSON decoding failed.

Constructors

JSONDecodeError String 

Instances

Instances details
Show JSONError Source # 
Instance details

Defined in GHCup.Errors

Pretty JSONError Source # 
Instance details

Defined in GHCup.Errors

data FileDoesNotExistError Source #

A file that is supposed to exist does not exist (e.g. when we use file scheme to "download" something).

data DigestError Source #

File digest verification failed.

Constructors

DigestError Text Text 

Instances

Instances details
Show DigestError Source # 
Instance details

Defined in GHCup.Errors

Pretty DigestError Source # 
Instance details

Defined in GHCup.Errors

data HTTPStatusError Source #

Unexpected HTTP status.

Constructors

HTTPStatusError Int 

data NoLocationHeader Source #

The Location header was expected during a 3xx redirect, but not found.

Constructors

NoLocationHeader 

data TooManyRedirs Source #

Too many redirects.

Constructors

TooManyRedirs 

Instances

Instances details
Show TooManyRedirs Source # 
Instance details

Defined in GHCup.Errors

Pretty TooManyRedirs Source # 
Instance details

Defined in GHCup.Errors

data PatchFailed Source #

A patch could not be applied.

Constructors

PatchFailed 

Instances

Instances details
Show PatchFailed Source # 
Instance details

Defined in GHCup.Errors

Pretty PatchFailed Source # 
Instance details

Defined in GHCup.Errors

data NoToolRequirements Source #

The tool requirements could not be found.

Constructors

NoToolRequirements 

data DownloadFailed Source #

A download failed. The underlying error is encapsulated.

Constructors

forall x xs.(Show x, Show (V xs), Pretty x, Pretty (V xs)) => DownloadFailed (V (x ': xs)) 

Instances

Instances details
Show DownloadFailed Source # 
Instance details

Defined in GHCup.Errors

Pretty DownloadFailed Source # 
Instance details

Defined in GHCup.Errors

data BuildFailed Source #

A build failed.

Constructors

forall es.Show (V es) => BuildFailed (Path Abs) (V es) 

Instances

Instances details
Show BuildFailed Source # 
Instance details

Defined in GHCup.Errors

Pretty BuildFailed Source # 
Instance details

Defined in GHCup.Errors

data GHCupSetError Source #

Setting the current GHC version failed.

Constructors

forall es.Show (V es) => GHCupSetError (V es) 

Instances

Instances details
Show GHCupSetError Source # 
Instance details

Defined in GHCup.Errors

Pretty GHCupSetError Source # 
Instance details

Defined in GHCup.Errors

data ParseError Source #

Parsing failed.

Constructors

ParseError String 

Orphan instances

Pretty ArchiveResult Source # 
Instance details

Pretty URIParseError Source # 
Instance details

(Pretty x, Pretty (V xs)) => Pretty (V (x ': xs)) Source # 
Instance details

Methods

pPrintPrec :: PrettyLevel -> Rational -> V (x ': xs) -> Doc #

pPrint :: V (x ': xs) -> Doc #

pPrintList :: PrettyLevel -> [V (x ': xs)] -> Doc #

Pretty (V ('[] :: [Type])) Source # 
Instance details

Methods

pPrintPrec :: PrettyLevel -> Rational -> V '[] -> Doc #

pPrint :: V '[] -> Doc #

pPrintList :: PrettyLevel -> [V '[]] -> Doc #