Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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
Song | |
|
Instances
data SongArtwork Source #
Instances
data SongComment Source #
Instances
data SongOpinion Source #
Instances
data SongContent Source #
SongContent | |
|
Instances
validateSong :: Song -> ValidationResult Source #
data SongSortOrder Source #
Instances
Read SongSortOrder Source # | |
Defined in WikiMusic.Model.Song readsPrec :: Int -> ReadS SongSortOrder # readList :: ReadS [SongSortOrder] # | |
Show SongSortOrder Source # | |
Defined in WikiMusic.Model.Song showsPrec :: Int -> SongSortOrder -> ShowS # show :: SongSortOrder -> String # showList :: [SongSortOrder] -> ShowS # |
data ArtistOfSong Source #
ArtistOfSong | |
|
Instances
data SongExternalSources Source #
SongExternalSources | |
|
Instances
data SongArtworkOrderUpdate Source #
Instances
SongDelta | |
|
Instances
data SongContentDelta Source #
SongContentDelta | |
|
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 #
EnrichSongParams | |
|
Instances
parseInclude :: Text -> EnrichSongParams Source #