Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mixed stacks of RegionT and other transformers #4

Open
basvandijk opened this issue Jun 11, 2014 · 0 comments
Open

Allow mixed stacks of RegionT and other transformers #4

basvandijk opened this issue Jun 11, 2014 · 0 comments

Comments

@basvandijk
Copy link
Owner

If allowed by GHC, add the instance:

instance (MonadTransControl t, RegionBaseControl b parent) => 
         RegionBaseControl b (t (RegionT s parent)) where
  unsafeLiftBaseWith f = 
    liftWith $ \runT -> 
      unsafeLiftBaseWith $ \runInBase ->
        f $ liftM St . runInBase . runT
  ...

This allows to have mixed stacks of RegionT transformers and other transformers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant