summaryrefslogtreecommitdiff
path: root/libraries/base/Text/Read/Lex.hs
diff options
context:
space:
mode:
authorChaitanya Koparkar <ckoparkar@gmail.com>2018-03-02 16:12:56 -0500
committerBen Gamari <ben@smart-cactus.org>2018-03-02 16:13:07 -0500
commit5c28ee88dd66617b0fd5dbe0d90142ce983a547e (patch)
tree8322c8ec668e4a3db7eeafe6ac11f113ea570094 /libraries/base/Text/Read/Lex.hs
parent6a7e159ce25b432824f8757e0c768f2b2e2754df (diff)
downloadhaskell-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.hs10
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