-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hi, in the process of integrate dhall with etlas (a cabal fork suited for eta), we've found that the GenericPackageDescription generated by dhall-to-cabal is not equal to the generated by cabal itself using parseGenericPackageDescription.
Although it is similar enough to generate the same output using showGenericPackageDescription (to be fair, the main goal of the package), i am afraid that you cant use it directly against the cabal api.
I've setup a branch adding a strict comparation to analyze the changes between them:
options,profOptions,sharedOptions,staticOptionsare an empty list in cabal and a list of(Compiler,[])in dhall-to-cabal: i guess this probably would be not a problem but most cases fail with it- In projects with executables cabal has a
CondNode {condTreeData = Executable {exeName = UnqualComponentName "dhall-to-cabal"and dhall-to-cabalCondNode {condTreeData = Executable {exeName = UnqualComponentName "". Likely it could cause problems using against the api. - In projects with dependencies cabal has
condTreeConstraintsfilled for each component and dhall-to-cabal empty: this one caused the first (and unique for now) error when trying to use it against cabal api - In
dhall-to-cabal.dhallthere is a diff in the license:licenseRaw = Left (License (ELicense (ELicenseId MIT) Nothing))for cabal andlicenseRaw = Right MITfor dhall-to-cabal
I think some sort of strict comparation can be useful to detect and analyze possible bugs. I will open a pr to discuss the relevance of and possible changes over the strict tests.
Metadata
Metadata
Assignees
Labels
No labels