stack-1.6.3: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Types.GhcPkgId

Description

A ghc-pkg id.

Synopsis

Documentation

data GhcPkgId Source #

A ghc-pkg package identifier.

Instances

Eq GhcPkgId Source # 
Data GhcPkgId Source # 

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 :: (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 #

Ord GhcPkgId Source # 
Show GhcPkgId Source # 
Generic GhcPkgId Source # 

Associated Types

type Rep GhcPkgId :: * -> * #

Methods

from :: GhcPkgId -> Rep GhcPkgId x #

to :: Rep GhcPkgId x -> GhcPkgId #

NFData GhcPkgId Source # 

Methods

rnf :: GhcPkgId -> () #

Hashable GhcPkgId Source # 

Methods

hashWithSalt :: Int -> GhcPkgId -> Int #

hash :: GhcPkgId -> Int #

ToJSON GhcPkgId Source # 
FromJSON GhcPkgId Source # 
Store GhcPkgId Source # 
type Rep GhcPkgId Source # 
type Rep GhcPkgId = D1 * (MetaData "GhcPkgId" "Stack.Types.GhcPkgId" "stack-1.6.3-Dh3R3RRfDsL3MlVpeylZFN" True) (C1 * (MetaCons "GhcPkgId" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))

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.