Skip to content

Commit

Permalink
Don't use TypeInType on recent GHCs
Browse files Browse the repository at this point in the history
On GHC 8.6 or later, `TypeInType` is simply an alias for `DataKinds` +
`PolyKinds`.  What's more, `TypeInType` emits deprecation warnings with GHC 9.6
or later, so this patch guards the use of `TypeInType` behind CPP to avoid the
warnings.
  • Loading branch information
RyanGlScott committed Apr 19, 2023
1 parent 6e3606c commit e86b5de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Data/Type/RList.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{-# LANGUAGE TypeOperators, EmptyCase, EmptyDataDecls, RankNTypes #-}
{-# LANGUAGE TypeFamilies, DataKinds, PolyKinds, KindSignatures #-}
{-# LANGUAGE GADTs, TypeInType, PatternGuards, ScopedTypeVariables #-}
{-# LANGUAGE GADTs, CPP, PatternGuards, ScopedTypeVariables #-}

#if __GLASGOW_HASKELL__ < 806
{-# LANGUAGE TypeInType #-}
#endif
-- |
-- Module : Data.Type.RList
-- Copyright : (c) 2016 Edwin Westbrook
Expand Down

0 comments on commit e86b5de

Please sign in to comment.