Commit c8299265 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺 Committed by tibbe
Browse files

Support non-orphaned `instance Data Version` in GHC≥7.7


Signed-off-by: Herbert Valerio Riedel's avatarHerbert Valerio Riedel <hvr@gnu.org>
parent a307cad1
{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-} {-# LANGUAGE CPP, DeriveDataTypeable, StandaloneDeriving #-}
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
-- | -- |
-- Module : Distribution.Version -- Module : Distribution.Version
...@@ -121,8 +121,10 @@ data VersionRange ...@@ -121,8 +121,10 @@ data VersionRange
| VersionRangeParens VersionRange -- just '(exp)' parentheses syntax | VersionRangeParens VersionRange -- just '(exp)' parentheses syntax
deriving (Show,Read,Eq,Typeable,Data) deriving (Show,Read,Eq,Typeable,Data)
-- TODO orphan #if __GLASGOW_HASKELL__ < 707
-- starting with ghc-7.7/base-4.7 this instance is provided in "Data.Data"
deriving instance Data Version deriving instance Data Version
#endif
{-# DEPRECATED AnyVersion "Use 'anyVersion', 'foldVersionRange' or 'asVersionIntervals'" #-} {-# DEPRECATED AnyVersion "Use 'anyVersion', 'foldVersionRange' or 'asVersionIntervals'" #-}
{-# DEPRECATED ThisVersion "use 'thisVersion', 'foldVersionRange' or 'asVersionIntervals'" #-} {-# DEPRECATED ThisVersion "use 'thisVersion', 'foldVersionRange' or 'asVersionIntervals'" #-}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment