diff options
author | Chaitanya Koparkar <ckoparkar@gmail.com> | 2018-03-02 16:12:56 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-03-02 16:13:07 -0500 |
commit | 5c28ee88dd66617b0fd5dbe0d90142ce983a547e (patch) | |
tree | 8322c8ec668e4a3db7eeafe6ac11f113ea570094 /libraries/base/Text/Read/Lex.hs | |
parent | 6a7e159ce25b432824f8757e0c768f2b2e2754df (diff) | |
download | haskell-5c28ee88dd66617b0fd5dbe0d90142ce983a547e.tar.gz |
Add @since annotations for derived instances in base
Test Plan: ./validate
Reviewers: hvr, goldfire, bgamari, RyanGlScott
Reviewed By: RyanGlScott
Subscribers: rwbarton, thomie, carter
GHC Trac Issues: #11767
Differential Revision: https://phabricator.haskell.org/D4452
Diffstat (limited to 'libraries/base/Text/Read/Lex.hs')
-rw-r--r-- | libraries/base/Text/Read/Lex.hs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libraries/base/Text/Read/Lex.hs b/libraries/base/Text/Read/Lex.hs index d0d39c6648..7568f9afaf 100644 --- a/libraries/base/Text/Read/Lex.hs +++ b/libraries/base/Text/Read/Lex.hs @@ -68,15 +68,19 @@ data Lexeme | Symbol String -- ^ Haskell symbol, e.g. @>>@, @:%@ | Number Number -- ^ @since 4.6.0.0 | EOF - deriving (Eq, Show) + deriving ( Eq -- ^ @since 2.01 + , Show -- ^ @since 2.01 + ) --- | @since 4.7.0.0 +-- | @since 4.6.0.0 data Number = MkNumber Int -- Base Digits -- Integral part | MkDecimal Digits -- Integral part (Maybe Digits) -- Fractional part (Maybe Integer) -- Exponent - deriving (Eq, Show) + deriving ( Eq -- ^ @since 4.6.0.0 + , Show -- ^ @since 4.6.0.0 + ) -- | @since 4.5.1.0 numberToInteger :: Number -> Maybe Integer |