-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Load environment variables from a file.
--   
--   Parse a .env file and load any declared variables into the current
--   process's environment. This allows for a .env file to specify
--   development-friendly defaults for configuration values normally set in
--   the deployment environment.
@package load-env
@version 0.1.1

module LoadEnv.Parse
type Environment = [Variable]
type Variable = (String, String)
parseEnvironment :: Parser Environment
parseVariable :: Parser Variable

module LoadEnv

-- | Parse <tt>./.env</tt> for variable declariations. Set those variables
--   in the currently running process's environment. Variables can be
--   declared in the following form:
--   
--   <pre>
--   FOO=bar
--   FOO="bar"
--   FOO='bar'
--   </pre>
--   
--   Declarations may optionally be preceded by <tt>export</tt>, which will
--   be ignored. Trailing whitespace is ignored. Quotes inside quoted
--   values or spaces in unquoted values must be escaped with a backlash.
--   
--   Invalid lines are silently ignored.
--   
--   If you wish to specify your own file, use <tt><a>loadEnvFrom</a></tt>.
--   If you wish to pass your own string or work with the parse result
--   directly, use the lower-level functions available in
--   <tt><a>LoadEnv.Parse</a></tt>.
loadEnv :: IO ()
loadEnvFrom :: FilePath -> IO ()
