You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.
Hey, this is cool, good work. I have a question though, where do you specify the method in something like this? You'd have to do it before the pattern match I assume.
-- Define handlers for each value constructor in your URL data type.routeAppUrl::AppUrl->HandlerAppApp()
routeAppUrl appUrl =case appUrl of
(Login) -> with auth handleLoginSubmit
(Logout) -> with auth handleLogout
(Count n) -> writeText $ ("Count = "`T.append` (T.pack $show n))
(Echo text) -> echo text
(Paths ps) -> writeText $T.intercalate "" ps
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey, this is cool, good work. I have a question though, where do you specify the method in something like this? You'd have to do it before the pattern match I assume.
The text was updated successfully, but these errors were encountered: