kazu-yamamoto / logger

A fast logging system for Haskell
159 stars 68 forks source link

Give an explicit definition for (<>) in LogStr's Semigroup instance #155

Closed RyanGlScott closed 6 years ago

RyanGlScott commented 6 years ago

In base-4.11 (bundled with GHC 8.4.1), there is no longer a default implementation for (<>) in terms of Monoid (after Semigroup became a superclass of Monoid), so using (<>) results in a runtime error. This fixes the issue by simply giving an implementation for (<>) that matches mappend.

kazu-yamamoto commented 6 years ago

Merged and released. Thank you for your contribution!