billboard-parser-1.0.0.1: A parser for the Billboard chord dataset

Portabilitynon-portable
Stabilityexperimental
MaintainerW. Bas de Haas <bash@cs.uu.nl>
Safe HaskellSafe-Inferred

Billboard.IOUtils

Description

Summary: A set Billboard specific file and directory utilities

Synopsis

Documentation

bbdir :: (FilePath -> IO a) -> FilePath -> IO [a]Source

Applies a function to all files in a directory

getBBFiles :: FilePath -> IO [(FilePath, Int)]Source

Given the path to the Billboard collection, returns a list with the filepaths and id's of the salami_chords.txt files. (The id is the parent folder name.)

getBBFile :: FilePath -> Int -> IO FilePathSource

Given a base directory pointing to the billboard location and a billboard id, this function returns the path to that particular billboard file. If the file does not exist, an error is thrown.