-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Simple config file parser generator -- -- Simple config file parser generator @package simple-config @version 1.0.0 -- | Simple-config is a parser generator for simple configuration file. -- -- To use this library, one needs import a module and set extensions. -- --
--   {-# LANGUAGE TemplateHaskell, QuasiQuotes #-}
--   import Text.Config
--   
-- -- The following is quick example. -- --
--   mkConfig "configParser" [config|
--   TestConfig
--       uri  URI
--       text String
--       list [String]
--   |]
--   
-- -- The example generates following codes. -- --
--   data TestConfig = TestConfig
--       { uri  :: String
--       , text :: String
--       , list :: [String]
--       }
--   
--   configParser :: Parser TestConfig
--   configParser = ...
--   
module Text.Config data ConfType ConfString :: ConfType ConfURI :: ConfType ConfList :: ConfType -> ConfType type ConfLine = (String, ConfType) type ConfTmp = (String, [ConfLine]) mkConfig :: String -> ConfTmp -> DecsQ config :: QuasiQuoter