Skip to content

Expose more of RuntimeSplice #32

Description

@hesselink

We have a MonadReader-like typeclass that we'd like to implement for RuntimeSplice m. Currently this is not possible, since you can't implement local. One option is to expose the RuntimeSplice constructor and unRS deconstructor. Then we could do something like:

instance OurReader m => OurReader (RuntimeSplice m) where
  ourAsk = lift ourAsk
  ourLocal f = RuntimeSplice . ourLocal f . unRT 

Another option is to provide an instance of MonadTransControl for RuntimeSplice. This could be used to write ourLocal and would also allow use of the functions from lifted-base, like catch.

I could send a pull request for either option, if you let me know which (if any) you prefer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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