Skip to content

EPA: duplicate comments captured in data family instance declaration

The code

data instance Method PGMigration = MigrationQuery Query
                                 -- ^ Run a query against the database
                                 | MigrationCode (Connection -> IO (Either String ()))
                                 -- ^ Run any arbitrary IO code

Results in two instances of the -- ^ Run a query against the database comment appearing in the Exact Print Annotations when it is parsed.

Note: This affects GHC 9.2.1 (unreleased still) too.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information