Skip to content
Snippets Groups Projects
Verified Commit 20887899 authored by jan.hamal.dvorak's avatar jan.hamal.dvorak
Browse files

Clean up some comments

parent 04d71178
No related branches found
No related tags found
No related merge requests found
...@@ -110,15 +110,15 @@ where ...@@ -110,15 +110,15 @@ where
-- Disable caching for all the following endpoints. -- Disable caching for all the following endpoints.
wrapAction (defaultHeader hCacheControl "no-store" >>) $ do wrapAction (defaultHeader hCacheControl "no-store" >>) $ do
-- Return search results and repeat the form. -- Return search results and repeat the form.
route $ getSearchHtmlR <$ get <* seg "search" route $ getSearchHtmlR <$ get </ "search"
<* offerHTML <* offerHTML
-- Present a simple greeting page. -- Present a simple greeting page.
route $ getHelloR <$ get <* seg "hello" <*> arg route $ getHelloR <$ get </ "hello" <*> arg
<* offerText <* offerText
-- Create an echoing JSON API. -- Create an echoing JSON API.
route $ postEchoR <$ post <* seg "api" <* seg "echo" route $ postEchoR <$ post </ "api" </ "echo"
<* offerJSON <* acceptJSON <* offerJSON <* acceptJSON
......
...@@ -92,14 +92,14 @@ where ...@@ -92,14 +92,14 @@ where
-- app = dispatch runAction $ do -- app = dispatch runAction $ do
-- 'middleware' $ logStdoutDev -- 'middleware' $ logStdoutDev
-- --
-- 'route' $ getRootR \<$ 'get' -- 'route' $ getRootR \<$ 'Hikaru.Route.get'
-- 'route' $ getHelloR \<$ 'get' <* 'seg' "hello" \<*\> 'arg' -- 'route' $ getHelloR \<$ 'Hikaru.Route.get' \<\/ "hello" \<*\> 'arg'
-- --
-- 'wrapRoute' needAuth $ do -- 'wrapRoute' needAuth $ do
-- 'route' $ getAdminR \<$ 'get' \<* 'seg' "admin" -- 'route' $ getAdminR \<$ 'Hikaru.Route.get' \<\/ "admin"
-- 'route' $ postPassR \<$ 'post' \<* 'seg' "admin" \<* 'seg' "password" -- 'route' $ postPassR \<$ 'Hikaru.Route.post' \<\/ "admin" \<\/ "password"
-- --
-- 'handle' 'NotFound' notFoundR -- 'handler' 'NotFound' notFoundR
-- @ -- @
-- --
dispatch :: forall r. (r -> Application) dispatch :: forall r. (r -> Application)
...@@ -201,8 +201,8 @@ where ...@@ -201,8 +201,8 @@ where
-- app = 'dispatch' runAction $ do -- app = 'dispatch' runAction $ do
-- 'wrapRoutes' ('Hikaru.Action.defaultHeader' hCacheControl "no-cache" >>) -- 'wrapRoutes' ('Hikaru.Action.defaultHeader' hCacheControl "no-cache" >>)
-- --
-- 'route' $ getRootR \<$ 'get' -- 'route' $ getRootR \<$ 'Hikaru.Route.get'
-- 'route' $ getHelloR \<$ 'get' <* 'seg' "hello" \<*\> 'arg' -- 'route' $ getHelloR \<$ 'Hikaru.Route.get' \<\/ "hello" \<*\> 'arg'
-- @ -- @
-- --
wrapActions :: (r -> r) -> Dispatch r l () wrapActions :: (r -> r) -> Dispatch r l ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment