Skip to content

Add HasCallStack constraint to ioErrorΒ #275

@bgamari

Description

@bgamari

I propose that the type of ioError as exposed by Control.Exception and System.IO.Error be augmented with a HasCallStack constraint:

ioError         :: HasCallStack => IOError -> IO a

This will allow HasCallStack constraints to be propagated to exception backtraces from callsites.

Implementation: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12861

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedApproved by CLC votebase-4.21Implemented in base-4.21 (GHC 9.12)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions