Abstract representation of musical parts for Haskell