Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
WikiMusic.Model.Song
Synopsis
- data Song = Song {
- identifier :: UUID
- displayName :: Text
- musicKey :: Maybe Text
- musicTuning :: Maybe Text
- musicCreationDate :: Maybe Text
- albumName :: Maybe Text
- albumInfoLink :: Maybe Text
- createdBy :: UUID
- visibilityStatus :: Int
- approvedBy :: Maybe UUID
- createdAt :: UTCTime
- lastEditedAt :: Maybe UTCTime
- artworks :: Map UUID SongArtwork
- comments :: [ThreadRender SongComment]
- opinions :: Map UUID SongOpinion
- contents :: Map UUID SongContent
- spotifyUrl :: Maybe Text
- youtubeUrl :: Maybe Text
- soundcloudUrl :: Maybe Text
- wikipediaUrl :: Maybe Text
- artists :: Map UUID Text
- viewCount :: Int
- description :: Maybe Text
- data SongArtwork = SongArtwork {
- songIdentifier :: UUID
- artwork :: Artwork
- data SongComment = SongComment {
- songIdentifier :: UUID
- comment :: Comment
- data SongOpinion = SongOpinion {
- songIdentifier :: UUID
- opinion :: Opinion
- data SongContent = SongContent {
- identifier :: UUID
- songIdentifier :: UUID
- versionName :: Text
- createdBy :: UUID
- visibilityStatus :: Int
- approvedBy :: Maybe UUID
- instrumentType :: Text
- asciiLegend :: Maybe Text
- asciiContents :: Maybe Text
- pdfContents :: Maybe Text
- guitarProContents :: Maybe Text
- createdAt :: UTCTime
- lastEditedAt :: Maybe UTCTime
- validateSong :: Song -> ValidationResult
- validateSongArtwork :: SongArtwork -> ValidationResult
- validateSongComment :: SongComment -> ValidationResult
- validateSongOpinion :: SongOpinion -> ValidationResult
- validateSongContent :: SongContent -> ValidationResult
- data SongSortOrder
- validateArtistOfSong :: ArtistOfSong -> ValidationResult
- data ArtistOfSong = ArtistOfSong {}
- data SongExternalSources = SongExternalSources {}
- validateSongExternalSources :: SongExternalSources -> ValidationResult
- data SongArtworkOrderUpdate = SongArtworkOrderUpdate {
- identifier :: UUID
- orderValue :: Int
- validateSongArtworkOrderUpdate :: SongArtworkOrderUpdate -> ValidationResult
- validateSongDelta :: SongDelta -> ValidationResult
- data SongDelta = SongDelta {}
- validateSongContentDelta :: SongContentDelta -> ValidationResult
- data SongContentDelta = SongContentDelta {}
- show :: Show a => a -> String
- read :: Read a => String -> a
- data SongIncludes
- data EnrichSongParams = EnrichSongParams {}
- fullEnrichment :: EnrichSongParams
- noEnrichment :: EnrichSongParams
- parseInclude :: Text -> EnrichSongParams
Documentation
Constructors
Song | |
Fields
|
Instances
data SongArtwork Source #
Constructors
SongArtwork | |
Fields
|
Instances
data SongComment Source #
Constructors
SongComment | |
Fields
|
Instances
data SongOpinion Source #
Constructors
SongOpinion | |
Fields
|
Instances
data SongContent Source #
Constructors
SongContent | |
Fields
|
Instances
validateSong :: Song -> ValidationResult Source #
data SongSortOrder Source #
Constructors
DescCreatedAt | |
AscCreatedAt | |
DescLastEditedAt | |
AscLastEditedAt | |
DescDisplayName | |
AscDisplayName |
Instances
Read SongSortOrder Source # | |
Defined in WikiMusic.Model.Song Methods readsPrec :: Int -> ReadS SongSortOrder # readList :: ReadS [SongSortOrder] # | |
Show SongSortOrder Source # | |
Defined in WikiMusic.Model.Song Methods showsPrec :: Int -> SongSortOrder -> ShowS # show :: SongSortOrder -> String # showList :: [SongSortOrder] -> ShowS # |
data ArtistOfSong Source #
Constructors
ArtistOfSong | |
Fields
|
Instances
data SongExternalSources Source #
Constructors
SongExternalSources | |
Fields
|
Instances
data SongArtworkOrderUpdate Source #
Constructors
SongArtworkOrderUpdate | |
Fields
|
Instances
Constructors
SongDelta | |
Fields
|
Instances
data SongContentDelta Source #
Constructors
SongContentDelta | |
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 SongIncludes Source #
Instances
data EnrichSongParams Source #
Constructors
EnrichSongParams | |
Fields
|
Instances
parseInclude :: Text -> EnrichSongParams Source #