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

Better type signature for routeSite #10

Closed
ElvishJerricco opened this issue May 12, 2016 · 1 comment
Closed

Better type signature for routeSite #10

ElvishJerricco opened this issue May 12, 2016 · 1 comment

Comments

@ElvishJerricco
Copy link

In the docs for Reflex.Dom.Contrib.Router, the routeSite function has a pretty scary type signature.

routeSite :: (String -> Widget Spider (Gui Spider (WithWebView SpiderHost) SpiderHostFrame) (Event Spider String)) -> IO ()

That overly specific type could be turned into an abstract one.

routeSite :: (forall t m. MonadWidget t m => String -> m (Event t String)) -> IO ()
@mightybyte
Copy link
Member

Thanks, pushed!

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

2 participants