A little command line tool I wrote to familiarize myself with (practical) Haskell. It takes a scale name amd root not as input and outputs the corresponding notes, for example:
$ scalez d# blues D# F# G# A A# C# D#
Source code availabe on github, see link below.