Skip to content

Commit

Permalink
Merge pull request #1477 from josephcsible/ghc92
Browse files Browse the repository at this point in the history
Enable FlexibleContexts in Servant.API.ContentTypes
  • Loading branch information
tchoutri committed Oct 31, 2021
2 parents bd9e4b1 + fea40bd commit 70b3721
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions changelog.d/1477
Original file line number Diff line number Diff line change
@@ -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.

}
1 change: 1 addition & 0 deletions servant/src/Servant/API/ContentTypes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
Expand Down

0 comments on commit 70b3721

Please sign in to comment.