Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
WikiMusic.Model.Genre
Synopsis
- data Genre = Genre {
- identifier :: UUID
- parentIdentifier :: Maybe UUID
- displayName :: Text
- createdBy :: UUID
- visibilityStatus :: Int
- approvedBy :: Maybe UUID
- createdAt :: UTCTime
- lastEditedAt :: Maybe UTCTime
- artworks :: Map UUID GenreArtwork
- comments :: [ThreadRender GenreComment]
- opinions :: Map UUID GenreOpinion
- spotifyUrl :: Maybe Text
- youtubeUrl :: Maybe Text
- soundcloudUrl :: Maybe Text
- wikipediaUrl :: Maybe Text
- viewCount :: Int
- description :: Maybe Text
- data GenreArtwork = GenreArtwork {}
- data GenreComment = GenreComment {}
- data GenreOpinion = GenreOpinion {}
- validateGenre :: Genre -> ValidationResult
- validateGenreArtwork :: GenreArtwork -> ValidationResult
- validateGenreComment :: GenreComment -> ValidationResult
- validateGenreOpinion :: GenreOpinion -> ValidationResult
- data GenreSortOrder
- data GenreExternalSources = GenreExternalSources {}
- validateGenreExternalSources :: GenreExternalSources -> ValidationResult
- data GenreArtworkOrderUpdate = GenreArtworkOrderUpdate {
- identifier :: UUID
- orderValue :: Int
- validateGenreArtworkOrderUpdate :: GenreArtworkOrderUpdate -> ValidationResult
- validateGenreDelta :: GenreDelta -> ValidationResult
- data GenreDelta = GenreDelta {
- identifier :: UUID
- displayName :: Maybe Text
- spotifyUrl :: Maybe Text
- youtubeUrl :: Maybe Text
- soundcloudUrl :: Maybe Text
- wikipediaUrl :: Maybe Text
- description :: Maybe Text
- show :: Show a => a -> String
- read :: Read a => String -> a
- data GenreIncludes
- data EnrichGenreParams = EnrichGenreParams {}
- fullEnrichment :: EnrichGenreParams
- noEnrichment :: EnrichGenreParams
- parseInclude :: Text -> EnrichGenreParams
Documentation
Constructors
Genre | |
Fields
|
Instances
data GenreArtwork Source #
Constructors
GenreArtwork | |
Fields
|
Instances
data GenreComment Source #
Constructors
GenreComment | |
Fields
|
Instances
data GenreOpinion Source #
Constructors
GenreOpinion | |
Fields
|
Instances
data GenreSortOrder Source #
Constructors
DescCreatedAt | |
AscCreatedAt | |
DescLastEditedAt | |
AscLastEditedAt | |
DescDisplayName | |
AscDisplayName |
Instances
Read GenreSortOrder Source # | |
Defined in WikiMusic.Model.Genre Methods readsPrec :: Int -> ReadS GenreSortOrder # readList :: ReadS [GenreSortOrder] # | |
Show GenreSortOrder Source # | |
Defined in WikiMusic.Model.Genre Methods showsPrec :: Int -> GenreSortOrder -> ShowS # show :: GenreSortOrder -> String # showList :: [GenreSortOrder] -> ShowS # |
data GenreExternalSources Source #
Constructors
GenreExternalSources | |
Fields
|
Instances
data GenreArtworkOrderUpdate Source #
Constructors
GenreArtworkOrderUpdate | |
Fields
|
Instances
data GenreDelta Source #
Constructors
GenreDelta | |
Fields
|
Instances
read :: Read a => String -> a #
The read
function reads input from a string, which must be
completely consumed by the input process. read
fails with an error
if the
parse is unsuccessful, and it is therefore discouraged from being used in
real applications. Use readMaybe
or readEither
for safe alternatives.
>>>
read "123" :: Int
123
>>>
read "hello" :: Int
*** Exception: Prelude.read: no parse
data GenreIncludes Source #
Constructors
IncludeComments | |
IncludeOpinions | |
IncludeArtworks |
Instances
data EnrichGenreParams Source #
Constructors
EnrichGenreParams | |
Fields |
Instances
parseInclude :: Text -> EnrichGenreParams Source #