Cabalized version of the Sdf2Haskell library from Strafunski