Skip to content

Generalize the types #5

@Helkafen

Description

@Helkafen

Thanks for rate-limit and for the good documentation. One suggestion: it would be nice to generalize over the monad type. For instance, to make it straightforward to use with the lifted version of mapConcurrently in lifted-async :

  • async: mapConcurrently :: Traversable t => (a -> IO b) -> t a -> IO (t b)
  • lifted-async: mapConcurrently :: (Traversable t, MonadBaseControl IO m, Forall (Pure m)) => (a -> m b) -> t a -> m (t b)

My specific use case was related to a switch from IO to ExceptT e IO.

Cheers!

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