Skip to content

try :: Exception e => IO a -> IO (Either e a) #1

@sebastian-philipp

Description

@sebastian-philipp

Have you thought about implementing

// try :: Exception e => IO a -> IO (Either e a)
template <FnT, HandlerT>
std::variant<T, std::exception> try_(FnT, HandlerT);

as well? See https://hackage.haskell.org/package/base-4.10.1.0/docs/Control-Exception.html#v:try

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions