From fea40bd0fcf90a775fe55a24e847ddf870777313 Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Sat, 30 Oct 2021 23:26:21 -0400 Subject: [PATCH] Enable FlexibleContexts in Servant.API.ContentTypes Starting with GHC 9.2, UndecidableInstances no longer implies FlexibleContexts. Add this extension where it's needed to make compilation succeed. --- changelog.d/1477 | 9 +++++++++ servant/src/Servant/API/ContentTypes.hs | 1 + 2 files changed, 10 insertions(+) create mode 100644 changelog.d/1477 diff --git a/changelog.d/1477 b/changelog.d/1477 new file mode 100644 index 00000000..52432378 --- /dev/null +++ b/changelog.d/1477 @@ -0,0 +1,9 @@ +synopsis: Enable FlexibleContexts in Servant.API.ContentTypes +prs: #1477 + +description: { + +Starting with GHC 9.2, UndecidableInstances no longer implies FlexibleContexts. +Add this extension where it's needed to make compilation succeed. + +} diff --git a/servant/src/Servant/API/ContentTypes.hs b/servant/src/Servant/API/ContentTypes.hs index 1706a047..10e8d896 100644 --- a/servant/src/Servant/API/ContentTypes.hs +++ b/servant/src/Servant/API/ContentTypes.hs @@ -2,6 +2,7 @@ {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} +{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-}