remove fromArgsWith from documentation
This commit is contained in:
parent
487e5c9bc4
commit
c1ff148cfd
@ -26,16 +26,10 @@ import Control.Concurrent.MVar (newEmptyMVar, putMVar, takeMVar)
|
|||||||
-- | Run your app, taking environment and port settings from the
|
-- | Run your app, taking environment and port settings from the
|
||||||
-- commandline.
|
-- commandline.
|
||||||
--
|
--
|
||||||
-- Use @'fromArgs'@ when using the provided @'DefaultEnv'@ type, or
|
-- @'fromArgs'@ helps parse a custom configuration
|
||||||
-- @'fromArgsWith'@ when using a custom type
|
|
||||||
--
|
--
|
||||||
-- > main :: IO ()
|
-- > main :: IO ()
|
||||||
-- > main = defaultMain fromArgs withMySite
|
-- > main = defaultMain (fromArgs parseExtra) makeApplication
|
||||||
--
|
|
||||||
-- or
|
|
||||||
--
|
|
||||||
-- > main :: IO ()
|
|
||||||
-- > main = defaultMain (fromArgsWith customArgConfig) withMySite
|
|
||||||
--
|
--
|
||||||
defaultMain :: (Show env, Read env)
|
defaultMain :: (Show env, Read env)
|
||||||
=> IO (AppConfig env extra)
|
=> IO (AppConfig env extra)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user