diff options
| author | Carlos Sosa <gnusosa@gnusosa.net> | 2020-04-18 20:08:00 -0700 |
|---|---|---|
| committer | Carlos Sosa <gnusosa@gnusosa.net> | 2020-04-23 09:21:02 -0700 |
| commit | c72953df05259b20a7fc87117aefbbe284a376a1 (patch) | |
| tree | 1a1515d0ada2adcc07e32095e841c8c2d4a0f982 /src/Sound/MusicDirTrans/Type.hs | |
Diffstat (limited to 'src/Sound/MusicDirTrans/Type.hs')
| -rwxr-xr-x | src/Sound/MusicDirTrans/Type.hs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/Sound/MusicDirTrans/Type.hs b/src/Sound/MusicDirTrans/Type.hs new file mode 100755 index 0000000..463cd96 --- /dev/null +++ b/src/Sound/MusicDirTrans/Type.hs @@ -0,0 +1,35 @@ +{-# LANGUAGE OverloadedStrings #-} +module Sound.MusicDirTrans.Type + ( AudioTrack(..) + , Metadata(..) + , ArtistPath(..) + , newPath + ) +where + + +import Sound.HTagLib ( Artist + , Album + , Year + , FileType + ) + +data AudioTrack = AudioTrack + { currentPath :: FilePath } + deriving (Show, Eq) + +data Metadata = Metadata + { mArtist :: Artist + , mAlbum :: Album + , mYear :: Maybe Year } + deriving (Show, Eq) + +data ArtistPath = ArtistPath + { rootPath :: FilePath + , parentPath :: FilePath + , childPath :: FilePath } + deriving (Show, Eq) + +newPath :: ArtistPath -> FilePath +newPath (ArtistPath _ p c) = p ++ "/" ++ c ++ "/" + |
