From 667d8405a89557c0b5d1db8092c843015cafa896 Mon Sep 17 00:00:00 2001 From: Yann Esposito Date: Thu, 23 Aug 2012 14:22:56 +0300 Subject: [PATCH] Added example on AddHandler to avoid confusion I used the add-handler command of Yesod, and I found the sentences were too ambiguous. In order to avoid confusion, I just added some examples. ps: I tried to write "getCommentR" instead of just "GET" and it was transformed in getcommentrCommentR :(. --- yesod/AddHandler.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yesod/AddHandler.hs b/yesod/AddHandler.hs index accd9347..04ffc8cf 100644 --- a/yesod/AddHandler.hs +++ b/yesod/AddHandler.hs @@ -29,10 +29,10 @@ addHandler = do c:_ | isLower c -> error "Name must start with an upper case letter" | otherwise -> return () - putStr "Enter route pattern: " + putStr "Enter route pattern (ex: /entry/#EntryId): " hFlush stdout pattern <- getLine - putStr "Enter space-separated list of methods: " + putStr "Enter space-separated list of methods (ex: GET POST): " hFlush stdout methods <- getLine