conal / total-map

Finitely represented /total/ maps
Other
15 stars 6 forks source link

Compile error with GHC 8.4.3 #8

Closed SongWithoutWords closed 6 years ago

SongWithoutWords commented 6 years ago

I encounter the following compile error when trying to build this package with GHC 8.4.3 with stack on Nixos:

/run/user/1000/stack-57250010b39a2979/total-map-0.0.6/src/Data/TotalMap.hs:77:10: error:
    * Could not deduce (Semigroup (TMap k v))
        arising from the superclasses of an instance declaration
      from the context: (Ord k, Monoid v)
        bound by the instance declaration at src/Data/TotalMap.hs:77:10-47
    * In the instance declaration for `Monoid (TMap k v)'
   |
77 | instance (Ord k, Monoid v) => Monoid (TMap k v) where
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I encountered the same issue when trying to use it as a dependency. Did Semigroup become a superclass of Monoid since this package was last updated?

conal commented 6 years ago

Yes, it did. I just tweaked, tested on GHCs 8.0.2, 8.2.2, and 8.4.3, and released.

conal commented 6 years ago

Thanks.