Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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
Genre | |
|
Instances
data GenreArtwork Source #
Instances
data GenreComment Source #
Instances
data GenreOpinion Source #
Instances
data GenreSortOrder Source #
Instances
Read GenreSortOrder Source # | |
Defined in WikiMusic.Model.Genre readsPrec :: Int -> ReadS GenreSortOrder # readList :: ReadS [GenreSortOrder] # | |
Show GenreSortOrder Source # | |
Defined in WikiMusic.Model.Genre showsPrec :: Int -> GenreSortOrder -> ShowS # show :: GenreSortOrder -> String # showList :: [GenreSortOrder] -> ShowS # |
data GenreExternalSources Source #
GenreExternalSources | |
|
Instances
data GenreArtworkOrderUpdate Source #
Instances
data GenreDelta Source #
GenreDelta | |
|
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 #
Instances
data EnrichGenreParams Source #
Instances
parseInclude :: Text -> EnrichGenreParams Source #