[Haskell-beginners] a problem

Michael Mossey mpm at alumni.caltech.edu
Wed Jun 23 04:07:33 EDT 2010


Can I get a suggestion for a concise way to write 'sortOutMusicData' as 
described here? This is MusicXML-related.

data Music_Data_ = Music_Data_1 Note
                  | Music_Data_4 Direction
                  | Music_Data_9 Sound
                   ...

sortOutMusicData :: [Music_Data_] -> ([Note],[Direction],[Sound])



More information about the Beginners mailing list