Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Array documentation is missing its Read instance #469

@rwbarton

Description

@rwbarton

See http://hackage.haskell.org/package/array-0.5.1.0/docs/Data-Array.html, or the corresponding file from the GHC 7.10.3 binary download.

...
(Ix i, Eq e) => Eq (Array i e)   
(Ix i, Ord e) => Ord (Array i e)     
(Ix a, Show a, Show b) => Show (Array a b)   

But there is also an instance instance (Ix a, Read a, Read b) => Read (Array a b). (It's even documented in the Haskell 2010 Report!)

I'm guessing this is due to the fact that Array and its Eq, Ord and Show instances are defined in module GHC.Arr in base, while the Read instance is defined in module GHC.Read, which imports GHC.Arr. Still the instance really should be documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions