Skip to content

Commit 70b3721

Browse files
authored
Merge pull request #1477 from josephcsible/ghc92
Enable FlexibleContexts in Servant.API.ContentTypes
2 parents bd9e4b1 + fea40bd commit 70b3721

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)