| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
OpenSuse.Types.ProjectId
Synopsis
- data ProjectId
- mkProjectId :: [String] -> ProjectId
- unProjectId :: ProjectId -> [String]
Documentation
Projects are identified on OBS by a string path.
>>>parse "project id" "SUSE:SLE-12-SP2:Update" :: ProjectIdProjectId ["SUSE","SLE-12-SP2","Update"]>>>parseM "project id" "SUSE::SLE-12-SP2" :: Maybe ProjectIdNothing>>>parseM "project id" ":SUSE" :: Maybe ProjectIdNothing>>>parseM "project id" "SUSE:" :: Maybe ProjectIdNothing
Instances
| FromJSON ProjectId Source # | |
| FromJSONKey ProjectId Source # | |
Defined in OpenSuse.Types.ProjectId Methods | |
| ToJSON ProjectId Source # | |
Defined in OpenSuse.Types.ProjectId | |
| ToJSONKey ProjectId Source # | |
Defined in OpenSuse.Types.ProjectId | |
| IsString ProjectId Source # | |
Defined in OpenSuse.Types.ProjectId Methods fromString :: String -> ProjectId # | |
| Monoid ProjectId Source # | |
| Semigroup ProjectId Source # | |
| Generic ProjectId Source # | |
| Show ProjectId Source # | |
| Binary ProjectId Source # | |
| NFData ProjectId Source # | |
Defined in OpenSuse.Types.ProjectId | |
| Eq ProjectId Source # | |
| Ord ProjectId Source # | |
| Hashable ProjectId Source # | |
Defined in OpenSuse.Types.ProjectId | |
| HasParser ProjectId Source # | |
Defined in OpenSuse.Types.ProjectId | |
| Pretty ProjectId Source # | |
Defined in OpenSuse.Types.ProjectId Methods pPrintPrec :: PrettyLevel -> Rational -> ProjectId -> Doc # pPrintList :: PrettyLevel -> [ProjectId] -> Doc # | |
| type Rep ProjectId Source # | |
Defined in OpenSuse.Types.ProjectId | |
mkProjectId :: [String] -> ProjectId Source #
Constructor function for project identifiers.
TODO: Figure out how to deal with the [] project.
unProjectId :: ProjectId -> [String] Source #
Accessor function for the underlying path of strings.