summaryrefslogtreecommitdiff
path: root/libraries/ghc-boot/GHC/LanguageExtensions.hs
blob: f4bd249c42198b0d4e56e44722439b459dd6ed90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{-# OPTIONS_GHC -fno-warn-orphans #-}

-- | This module re-exports the 'Extension' type along with an orphan 'Binary'
-- instance for it.
--
-- Note that the @ghc-boot@ package has a large set of dependencies; for this
-- reason the 'Extension' type itself is defined in the
-- "GHC.LanguageExtensions.Type" module provided by the @ghc-boot-th@ package,
-- which has no dependencies outside of @base@. For this reason
-- @template-haskell@ depends upon @ghc-boot-th@, not @ghc-boot@.
--
module GHC.LanguageExtensions ( module GHC.LanguageExtensions.Type ) where

import Data.Binary
import GHC.LanguageExtensions.Type

instance Binary Extension where
  get = toEnum <$> get
  put = put . fromEnum