Skip to content

Commit

Permalink
Only enable TypeInType on pre-8.6 GHCs
Browse files Browse the repository at this point in the history
After GHC 8.6, `TypeInType`'s functionality was made a part of the `DataKinds`
and `PolyKinds` extensions. Moreover, GHC 9.6 gives a deprecation warning when
using `TypeInType`, so we now have an extra incentive to only enable
`TypeInType` where absolutely necessary.
  • Loading branch information
RyanGlScott committed Jan 22, 2023
1 parent 95eaf2e commit 2cbb56e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base-compat/src/Control/Exception/Compat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
{-# LANGUAGE Trustworthy #-}
#endif
#if MIN_VERSION_base(4,10,0)
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
# if __GLASGOW_HASKELL__ < 806
{-# LANGUAGE TypeInType #-}
# endif
#endif
module Control.Exception.Compat (
module Base
Expand Down

0 comments on commit 2cbb56e

Please sign in to comment.