diff options
Diffstat (limited to 'libraries/base/GHC/Read.hs')
-rw-r--r-- | libraries/base/GHC/Read.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libraries/base/GHC/Read.hs b/libraries/base/GHC/Read.hs index 2c9aec08cd..75ccb0c5da 100644 --- a/libraries/base/GHC/Read.hs +++ b/libraries/base/GHC/Read.hs @@ -656,6 +656,12 @@ instance (Integral a, Read a) => Read (Ratio a) where -- Tuple instances of Read, up to size 15 ------------------------------------------------------------------------ +-- | Reading a 'Void' value is always a parse error, considering +-- 'Void' as a data type with no constructors. +-- +-- @since 4.8.0.0 +deriving instance Read Void + -- | @since 2.01 instance Read () where readPrec = |