aboutsummaryrefslogtreecommitdiff
path: root/src/Sound/MusicDirTrans/Type.hs
diff options
context:
space:
mode:
authorCarlos Sosa <gnusosa@gnusosa.net>2020-04-18 20:08:00 -0700
committerCarlos Sosa <gnusosa@gnusosa.net>2020-04-23 09:21:02 -0700
commitc72953df05259b20a7fc87117aefbbe284a376a1 (patch)
tree1a1515d0ada2adcc07e32095e841c8c2d4a0f982 /src/Sound/MusicDirTrans/Type.hs
Initial commit v0.1.0HEADmaster
Diffstat (limited to 'src/Sound/MusicDirTrans/Type.hs')
-rwxr-xr-xsrc/Sound/MusicDirTrans/Type.hs35
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 ++ "/"
+