summaryrefslogtreecommitdiff
path: root/libraries/base/Control/Exception
diff options
context:
space:
mode:
authorSeraphime Kirkovski <kirkseraph@gmail.com>2016-06-06 12:29:38 +0200
committerBen Gamari <ben@smart-cactus.org>2016-06-06 15:07:18 +0200
commita90085bd45239fffd65c01c24752a9bbcef346f1 (patch)
tree41a85ba36720d8fba0a3296ea7a844dd9fc0042a /libraries/base/Control/Exception
parent48e9a1f5521fa3185510d144dd28a87e452ce134 (diff)
downloadhaskell-a90085bd45239fffd65c01c24752a9bbcef346f1.tar.gz
Add @since annotations to base instances
Add @since annotations to instances in `base`. Test Plan: * ./validate # some commets shouldn't break the build * review the annotations for absurdities. Reviewers: ekmett, goldfire, RyanGlScott, austin, hvr, bgamari Reviewed By: RyanGlScott, hvr, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2277 GHC Trac Issues: #11767
Diffstat (limited to 'libraries/base/Control/Exception')
-rw-r--r--libraries/base/Control/Exception/Base.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/libraries/base/Control/Exception/Base.hs b/libraries/base/Control/Exception/Base.hs
index 5b3d47cf09..9dd96488bc 100644
--- a/libraries/base/Control/Exception/Base.hs
+++ b/libraries/base/Control/Exception/Base.hs
@@ -299,9 +299,11 @@ bracketOnError before after thing =
-- source location of the pattern.
newtype PatternMatchFail = PatternMatchFail String
+-- | @since 4.0
instance Show PatternMatchFail where
showsPrec _ (PatternMatchFail err) = showString err
+-- | @since 4.0
instance Exception PatternMatchFail
-----
@@ -313,9 +315,11 @@ instance Exception PatternMatchFail
-- location of the record selector.
newtype RecSelError = RecSelError String
+-- | @since 4.0
instance Show RecSelError where
showsPrec _ (RecSelError err) = showString err
+-- | @since 4.0
instance Exception RecSelError
-----
@@ -325,9 +329,11 @@ instance Exception RecSelError
-- constructed.
newtype RecConError = RecConError String
+-- | @since 4.0
instance Show RecConError where
showsPrec _ (RecConError err) = showString err
+-- | @since 4.0
instance Exception RecConError
-----
@@ -339,9 +345,11 @@ instance Exception RecConError
-- location of the record update.
newtype RecUpdError = RecUpdError String
+-- | @since 4.0
instance Show RecUpdError where
showsPrec _ (RecUpdError err) = showString err
+-- | @since 4.0
instance Exception RecUpdError
-----
@@ -351,9 +359,11 @@ instance Exception RecUpdError
-- @String@ gives information about which method it was.
newtype NoMethodError = NoMethodError String
+-- | @since 4.0
instance Show NoMethodError where
showsPrec _ (NoMethodError err) = showString err
+-- | @since 4.0
instance Exception NoMethodError
-----
@@ -365,9 +375,11 @@ instance Exception NoMethodError
-- @since 4.9.0.0
newtype TypeError = TypeError String
+-- | @since 4.9.0.0
instance Show TypeError where
showsPrec _ (TypeError err) = showString err
+-- | @since 4.9.0.0
instance Exception TypeError
-----
@@ -378,9 +390,11 @@ instance Exception TypeError
-- guaranteed to terminate or not.
data NonTermination = NonTermination
+-- | @since 4.0
instance Show NonTermination where
showsPrec _ NonTermination = showString "<<loop>>"
+-- | @since 4.0
instance Exception NonTermination
-----
@@ -389,9 +403,11 @@ instance Exception NonTermination
-- package, inside another call to @atomically@.
data NestedAtomically = NestedAtomically
+-- | @since 4.0
instance Show NestedAtomically where
showsPrec _ NestedAtomically = showString "Control.Concurrent.STM.atomically was nested"
+-- | @since 4.0
instance Exception NestedAtomically
-----