Commits

Luke Plant  committed 873991d

Added some code doc

  • Participants
  • Parent commits 6bca1fd

Comments (0)

Files changed (1)

File src/Ella/Framework.hs

 --
 -- The routing mechanism has been designed so that you can write code like the following:
 --
+-- > routes :: [View]
 -- > routes = [
 -- >            empty                                  //-> indexView                 $ decs
 -- >          , "posts/" <+/> empty                    //-> postsView                 $ []
 --
 -- where:
 --
--- >  postsView, indexView :: Request -> IO (Maybe Response)
+-- >  postsView, indexView :: Request -> IO (Maybe Response)  (i.e. View)
 -- >  viewWithStringParam :: String -> Request -> IO (Maybe Response)
 -- >  viewWithIntParam :: Int -> Request -> IO (Maybe Response)
 -- >  viewWithIntAndStringParam :: Int -> String -> Request -> IO (Maybe Response)