stack-1.4.0: The Haskell Tool Stack

Safe Haskell | None
Language | Haskell2010

Stack.Types.GhcPkgId

Description

A ghc-pkg id.

Synopsis

- data GhcPkgId
- ghcPkgIdParser :: Parser GhcPkgId
- parseGhcPkgId :: MonadThrow m => Text -> m GhcPkgId
- ghcPkgIdString :: GhcPkgId -> String

# Documentation

data GhcPkgId #

A ghc-pkg package identifier.

Instances

Eq GhcPkgId # |
Methods (==) :: GhcPkgId -> GhcPkgId -> Bool # (/=) :: GhcPkgId -> GhcPkgId -> Bool #
Data 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 :: (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 # |
Methods compare :: GhcPkgId -> GhcPkgId -> Ordering # (<) :: GhcPkgId -> GhcPkgId -> Bool # (<=) :: GhcPkgId -> GhcPkgId -> Bool # (>) :: GhcPkgId -> GhcPkgId -> Bool # (>=) :: GhcPkgId -> GhcPkgId -> Bool # max :: GhcPkgId -> GhcPkgId -> GhcPkgId # min :: GhcPkgId -> GhcPkgId -> GhcPkgId #
Show GhcPkgId # |
Methods showsPrec :: Int -> GhcPkgId -> ShowS # show :: GhcPkgId -> String # showList :: [GhcPkgId] -> ShowS #
Generic GhcPkgId # |
Associated Types type Rep GhcPkgId :: * -> * # Methods from :: GhcPkgId -> Rep GhcPkgId x # to :: Rep GhcPkgId x -> GhcPkgId #
Binary GhcPkgId # |
Methods put :: GhcPkgId -> Put # get :: Get GhcPkgId # putList :: [GhcPkgId] -> Put #
Hashable GhcPkgId # |
Methods hashWithSalt :: Int -> GhcPkgId -> Int # hash :: GhcPkgId -> Int #
FromJSON GhcPkgId # |
Methods parseJSON :: Value -> Parser GhcPkgId # parseJSONList :: Value -> Parser [GhcPkgId] #
ToJSON GhcPkgId # |
Methods toJSON :: GhcPkgId -> Value # toEncoding :: GhcPkgId -> Encoding # toJSONList :: [GhcPkgId] -> Value # toEncodingList :: [GhcPkgId] -> Encoding #
HasStructuralInfo GhcPkgId # |
Methods structuralInfo :: Proxy * GhcPkgId -> StructuralInfo #
NFData GhcPkgId # |
Methods rnf :: GhcPkgId -> () #
Store GhcPkgId # |
Methods size :: Size GhcPkgId # poke :: GhcPkgId -> Poke () # peek :: Peek GhcPkgId #
type Rep GhcPkgId # |
type Rep GhcPkgId = D1 (MetaData "GhcPkgId" "Stack.Types.GhcPkgId" "stack-1.4.0-5VbagGyw9hyAgBJq8WQvrq" True) (C1 (MetaCons "GhcPkgId" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

ghcPkgIdParser :: Parser GhcPkgId #

A parser for a package-version-hash pair.

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

Convenient way to parse a package name from a `Text`.

ghcPkgIdString :: GhcPkgId -> String #

Get a string representation of GHC package id.