TidalCycles (https://tidalcycles.org/) is indeed written in Haskell - another take on 'music as language', though through live coding
Full disclosure: I'm the author of Glicol (https://glicol.org/)
Full disclosure: I'm the author of Glicol (https://glicol.org/)