Skip to content

Commit fea40bd

Browse files
committed
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.
1 parent bd9e4b1 commit fea40bd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

changelog.d/1477

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
synopsis: Enable FlexibleContexts in Servant.API.ContentTypes
2+
prs: #1477
3+
4+
description: {
5+
6+
Starting with GHC 9.2, UndecidableInstances no longer implies FlexibleContexts.
7+
Add this extension where it's needed to make compilation succeed.
8+
9+
}

servant/src/Servant/API/ContentTypes.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{-# LANGUAGE DataKinds #-}
33
{-# LANGUAGE DeriveDataTypeable #-}
44
{-# LANGUAGE DeriveGeneric #-}
5+
{-# LANGUAGE FlexibleContexts #-}
56
{-# LANGUAGE FlexibleInstances #-}
67
{-# LANGUAGE MultiParamTypeClasses #-}
78
{-# LANGUAGE OverloadedStrings #-}

0 commit comments

Comments
 (0)