hmt-0.16: Haskell Music Theory

Safe HaskellNone
LanguageHaskell98

Music.Theory.DB.JSON

Contents

Description

JSON string association database. JSON objects do no allow multiple keys. Here multiple keys are read & written as arrays.

Synopsis

Documentation

db_store_utf8 :: FilePath -> DB' -> IO () Source #

Store DB to FilePath.

let fn = "/home/rohan/ut/www-spr/data/db.js"
db <- db_load_utf8 fn
length db == 1334
db_store_utf8 "/tmp/sp.js" db

Maybe List of String