Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
c8299265
Commit
c8299265
authored
Sep 13, 2013
by
Herbert Valerio Riedel
🕺
Committed by
tibbe
Sep 13, 2013
Browse files
Support non-orphaned `instance Data Version` in GHC≥7.7
Signed-off-by:
Herbert Valerio Riedel
<
hvr@gnu.org
>
parent
a307cad1
Changes
1
Show whitespace changes
Inline
Side-by-side
Cabal/Distribution/Version.hs
View file @
c8299265
{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
{-# LANGUAGE
CPP,
DeriveDataTypeable, StandaloneDeriving #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Version
...
...
@@ -121,8 +121,10 @@ data VersionRange
|
VersionRangeParens
VersionRange
-- just '(exp)' parentheses syntax
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
#
endif
{-# DEPRECATED AnyVersion "Use 'anyVersion', 'foldVersionRange' or 'asVersionIntervals'" #-}
{-# DEPRECATED ThisVersion "use 'thisVersion', 'foldVersionRange' or 'asVersionIntervals'" #-}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment