
16 Sep
2016
16 Sep
'16
9:52 a.m.
.. if this helps the discussion, here is cabal file "spec" https://github.com/ghc/packages-Cabal/blob/71535bfb1bf439a1af0308a8e5da9ef98... (see also other files in the same directory) these types are used to parse .cabal. one benefit from using these types in reverse (to generate .cabal from .hs) would be: it is possible to write a few libs which generate well-formed cabal files from a simplified API. It is possible this was done already.