on master help sign in
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.

commitfea40bd0fcf90a775fe55a24e847ddf870777313 authorJoseph C. Sible <josephcsible@users.noreply.github.com> dateSat 30 Oct 2021, 23:26 (5 years ago) parentbd9e4b1
2 files changed+10
changelog.d/1477+9 servant/src/Servant/API/ContentTypes.hs+1
changelog.d/1477new file+9
@@ -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+1
@@ -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 #-}