boisgera / pandoc

Pandoc (Python Library)
https://boisgera.github.io/pandoc/
MIT License
143 stars 16 forks source link

pandoc-types fetching fails (again) #15

Closed boisgera closed 4 years ago

boisgera commented 4 years ago

Building pandoc-types-1.9.0.1 fails with :

/home/boisgera/DISKS/VOYAGER/SANDBOX/pandoc/fetch-types/pandoc-types/Text/Pandoc/Builder.hs:190:52: error:
    • No instance for (Semigroup Blocks)
        arising from the 'deriving' clause of a data type declaration
      Possible fix:
        use a standalone 'deriving instance' declaration,
          so you can specify the instance context yourself
    • When deriving the instance for (Monoid Blocks)
    |
190 |                 deriving (Data, Ord, Eq, Typeable, Monoid)
    |                                                    ^^^^^^

Possible lead: https://stackoverflow.com/questions/53622428/a-basic-monoid-definition-gives-no-instance-for-semigroup-mymonoid-arising-fr

boisgera commented 4 years ago

I could try to simply get rid of Text.Pandoc.Builder in the cabal file since I don't need it (I need only Text.Pandoc.Definition).

boisgera commented 4 years ago

OK, reworked the fetch again. I now use the previous data history directly, since I don't work to support ad vitam aeternam the code that was used to get it (and breaks every other day), and only manage a script to get the data for the most recent releases (which is reasonnably well behaved).