From c1ff148cfd263f05126d086cd55fdcaf33b946cd Mon Sep 17 00:00:00 2001 From: gregwebs Date: Wed, 4 Apr 2012 14:22:53 -0700 Subject: [PATCH] remove fromArgsWith from documentation --- yesod-default/Yesod/Default/Main.hs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/yesod-default/Yesod/Default/Main.hs b/yesod-default/Yesod/Default/Main.hs index 199b1f1d..a1e330f9 100644 --- a/yesod-default/Yesod/Default/Main.hs +++ b/yesod-default/Yesod/Default/Main.hs @@ -26,16 +26,10 @@ import Control.Concurrent.MVar (newEmptyMVar, putMVar, takeMVar) -- | Run your app, taking environment and port settings from the -- commandline. -- --- Use @'fromArgs'@ when using the provided @'DefaultEnv'@ type, or --- @'fromArgsWith'@ when using a custom type +-- @'fromArgs'@ helps parse a custom configuration -- -- > main :: IO () --- > main = defaultMain fromArgs withMySite --- --- or --- --- > main :: IO () --- > main = defaultMain (fromArgsWith customArgConfig) withMySite +-- > main = defaultMain (fromArgs parseExtra) makeApplication -- defaultMain :: (Show env, Read env) => IO (AppConfig env extra)