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 #-}