diff --git a/servant-client-core/src/Servant/Client/Core/ServerSentEvents.hs b/servant-client-core/src/Servant/Client/Core/ServerSentEvents.hs index 26202bf6..fa6b61e9 100644 --- a/servant-client-core/src/Servant/Client/Core/ServerSentEvents.hs +++ b/servant-client-core/src/Servant/Client/Core/ServerSentEvents.hs @@ -51,6 +51,10 @@ import Servant.Types.SourceT (SourceT, StepT (..), foreachYieldStep, mapStepT, transformStepWithAtto) +-- For compatibility with GHC <= 8.2 +import Data.Semigroup + (Semigroup (..)) + -- | Line (or frame) of an event stream newtype EventStreamLine = EventStreamLine { unEventStreamLine :: ByteString.ByteString }