Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
WikiMusic.Model.Artist
Synopsis
- data Artist = Artist {
- identifier :: UUID
- displayName :: Text
- createdBy :: UUID
- visibilityStatus :: Int
- approvedBy :: Maybe UUID
- createdAt :: UTCTime
- lastEditedAt :: Maybe UTCTime
- artworks :: Map UUID ArtistArtwork
- comments :: [ThreadRender ArtistComment]
- opinions :: Map UUID ArtistOpinion
- spotifyUrl :: Maybe Text
- youtubeUrl :: Maybe Text
- soundcloudUrl :: Maybe Text
- wikipediaUrl :: Maybe Text
- viewCount :: Int
- description :: Maybe Text
- data ArtistArtwork = ArtistArtwork {}
- data ArtistComment = ArtistComment {}
- data ArtistOpinion = ArtistOpinion {}
- validateArtist :: Artist -> ValidationResult
- validateArtistArtwork :: ArtistArtwork -> ValidationResult
- validateArtistComment :: ArtistComment -> ValidationResult
- validateArtistOpinion :: ArtistOpinion -> ValidationResult
- data ArtistSortOrder
- data ArtistExternalSources = ArtistExternalSources {}
- validateArtistExternalSources :: ArtistExternalSources -> ValidationResult
- data ArtistArtworkOrderUpdate = ArtistArtworkOrderUpdate {
- identifier :: UUID
- orderValue :: Int
- validateArtistArtworkOrderUpdate :: ArtistArtworkOrderUpdate -> ValidationResult
- validateArtistDelta :: ArtistDelta -> ValidationResult
- data ArtistDelta = ArtistDelta {
- 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 ArtistIncludes
- data EnrichArtistParams = EnrichArtistParams {}
- fullEnrichment :: EnrichArtistParams
- noEnrichment :: EnrichArtistParams
- parseInclude :: Text -> EnrichArtistParams
Documentation
Constructors
Artist | |
Fields
|
Instances
data ArtistArtwork Source #
Constructors
ArtistArtwork | |
Fields
|
Instances
data ArtistComment Source #
Constructors
ArtistComment | |
Fields
|
Instances
data ArtistOpinion Source #
Constructors
ArtistOpinion | |
Fields
|
Instances
data ArtistSortOrder Source #
Constructors
DescCreatedAt | |
AscCreatedAt | |
DescLastEditedAt | |
AscLastEditedAt | |
DescDisplayName | |
AscDisplayName |
Instances
Read ArtistSortOrder Source # | |
Defined in WikiMusic.Model.Artist Methods readsPrec :: Int -> ReadS ArtistSortOrder # readList :: ReadS [ArtistSortOrder] # | |
Show ArtistSortOrder Source # | |
Defined in WikiMusic.Model.Artist Methods showsPrec :: Int -> ArtistSortOrder -> ShowS # show :: ArtistSortOrder -> String # showList :: [ArtistSortOrder] -> ShowS # |
data ArtistExternalSources Source #
Constructors
ArtistExternalSources | |
Fields
|
Instances
data ArtistArtworkOrderUpdate Source #
Constructors
ArtistArtworkOrderUpdate | |
Fields
|
Instances
data ArtistDelta Source #
Constructors
ArtistDelta | |
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 ArtistIncludes Source #
Constructors
IncludeComments | |
IncludeOpinions | |
IncludeArtworks |
Instances
data EnrichArtistParams Source #
Constructors
EnrichArtistParams | |
Fields |