Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
A ghc-pkg id.
Synopsis
- data GhcPkgId
- unGhcPkgId :: GhcPkgId -> Text
- ghcPkgIdParser :: Parser GhcPkgId
- parseGhcPkgId :: MonadThrow m => Text -> m GhcPkgId
- ghcPkgIdString :: GhcPkgId -> String
Documentation
A ghc-pkg package identifier.
Instances
FromJSON GhcPkgId Source # | |
ToJSON GhcPkgId Source # | |
Defined in Stack.Types.GhcPkgId | |
Data GhcPkgId Source # | |
Defined in Stack.Types.GhcPkgId 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 # | |
Read GhcPkgId Source # | |
Show GhcPkgId Source # | |
NFData GhcPkgId Source # | |
Defined in Stack.Types.GhcPkgId | |
Eq GhcPkgId Source # | |
Ord GhcPkgId Source # | |
Defined in Stack.Types.GhcPkgId | |
Hashable GhcPkgId Source # | |
Defined in Stack.Types.GhcPkgId | |
PersistField GhcPkgId Source # | |
Defined in Stack.Types.GhcPkgId | |
PersistFieldSql GhcPkgId Source # | |
type Rep GhcPkgId Source # | |
Defined in Stack.Types.GhcPkgId |
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.