stack-2.14.0: The Haskell Tool Stack
Safe HaskellSafe-Inferred
LanguageGHC2021

Stack.Types.GhcPkgId

Description

A ghc-pkg id.

Synopsis

Documentation

data GhcPkgId Source #

A ghc-pkg package identifier.

Instances

Instances details
FromJSON GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

ToJSON GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

Data GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GhcPkgId -> c GhcPkgId #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GhcPkgId #

toConstr :: GhcPkgId -> Constr #

dataTypeOf :: GhcPkgId -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GhcPkgId) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GhcPkgId) #

gmapT :: (forall b. Data b => b -> b) -> GhcPkgId -> GhcPkgId #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GhcPkgId -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GhcPkgId -> r #

gmapQ :: (forall d. Data d => d -> u) -> GhcPkgId -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GhcPkgId -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GhcPkgId -> m GhcPkgId #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GhcPkgId -> m GhcPkgId #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GhcPkgId -> m GhcPkgId #

Generic GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

Associated Types

type Rep GhcPkgId :: Type -> Type #

Methods

from :: GhcPkgId -> Rep GhcPkgId x #

to :: Rep GhcPkgId x -> GhcPkgId #

Read GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

Show GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

NFData GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

Methods

rnf :: GhcPkgId -> () #

Eq GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

Ord GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

Hashable GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

Methods

hashWithSalt :: Int -> GhcPkgId -> Int #

hash :: GhcPkgId -> Int #

PersistField GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

PersistFieldSql GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

type Rep GhcPkgId Source # 
Instance details

Defined in Stack.Types.GhcPkgId

type Rep GhcPkgId = D1 ('MetaData "GhcPkgId" "Stack.Types.GhcPkgId" "stack-2.14.0-CKI3CqdNSm89Q6MbWoYM52" 'True) (C1 ('MetaCons "GhcPkgId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

unGhcPkgId :: GhcPkgId -> Text Source #

Get a text value of GHC package id

ghcPkgIdParser :: Parser GhcPkgId Source #

A parser for a package-version-hash pair.

parseGhcPkgId :: MonadThrow m => Text -> m GhcPkgId Source #

Convenient way to parse a package name from a Text.

ghcPkgIdString :: GhcPkgId -> String Source #

Get a string representation of GHC package id.