stack-0.1.10.1: 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 :: * -> *

Binary GhcPkgId Source 

Methods

put :: GhcPkgId -> Put

get :: Get GhcPkgId

ToJSON GhcPkgId Source 

Methods

toJSON :: GhcPkgId -> Value

FromJSON GhcPkgId Source 
HasStructuralInfo GhcPkgId Source 
NFData GhcPkgId Source 

Methods

rnf :: GhcPkgId -> ()

Hashable GhcPkgId Source 
type Rep GhcPkgId Source 

ghcPkgIdParser :: Parser GhcPkgId Source

A parser for a package-version-hash pair.

parseGhcPkgId :: MonadThrow m => ByteString -> m GhcPkgId Source

Convenient way to parse a package name from a bytestring.

ghcPkgIdString :: GhcPkgId -> String Source

Get a string representation of GHC package id.