Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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
Artist | |
|
Instances
data ArtistArtwork Source #
Instances
data ArtistComment Source #
Instances
data ArtistOpinion Source #
Instances
data ArtistSortOrder Source #
Instances
Read ArtistSortOrder Source # | |
Defined in WikiMusic.Model.Artist | |
Show ArtistSortOrder Source # | |
Defined in WikiMusic.Model.Artist showsPrec :: Int -> ArtistSortOrder -> ShowS # show :: ArtistSortOrder -> String # showList :: [ArtistSortOrder] -> ShowS # |
data ArtistExternalSources Source #
ArtistExternalSources | |
|
Instances
data ArtistArtworkOrderUpdate Source #
Instances
data ArtistDelta Source #
ArtistDelta | |
|
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 #
Instances
data EnrichArtistParams Source #