This patch is intended to mitigate/fix Issue2576.
1 patch for repository http://darcs.net/screened:
Author: Ben Franksen <email@example.com>
Date: Mon Mar 12 22:42:53 CET 2018
* add validation for PatchInfo items, add unit test for parse/unparse
Due to the idiosyncratic format of the PatchInfo on disk (in patch
inventories), the PatchInfo parser must make certain assumptions regarding
the PatchInfo items. These are now codified in validation functions and
enforced when building PatchInfo data. They are also used to provide
Arbitrary instances for property tests.
So, using unsafPerformIO patchinfo all that time was a mistake, the
correct function to use in reproducible tests should be rawPatchInfo
(slightly ill named function if it is only used in tests..).
You introduce validation functions in Darcs.Patch.Info and then use them
in combination with QuickCheck's `suchThat` function to generate usable
fields for patchinfo's.
Also no longer used generatore are removed from