-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Simple text configuration file parser library. -- -- This Library can be used to keep track of simple information in simple -- games and other programs. @package tconfig @version 0.2 -- | A small and simple text file configuration library written in Haskell. -- It is similar to the INI file format, but lacks a few of it's -- features, such as sections which will be added eventually. It is -- suitable for simple games that need to keep track of certain -- information between plays. module Data.TConfig -- | The Configuration type takes a key and a value, and returns a -- Configuration type. data Configuration -- | Utility function. Searches a Configuration for a key, and returns it's -- value. getValue :: Key -> [Configuration] -> Maybe Value -- | Utility function. Replaces the value for a key in a Configuration. repConfig :: Key -> Value -> [Configuration] -> [Configuration] -- | Reads and parses a string from a file into a Configuration. readConfig :: FilePath -> IO [Configuration] -- | Parses a parsed Configuration back to a file. writeConfig :: FilePath -> [Configuration] -> IO () -- | Utility function. Removes a key and it's value from the configuration. remKey :: Key -> [Configuration] -> [Configuration] -- | Adds a key and value to the end of the Configuration. addKey :: Key -> Value -> [Configuration] -> [Configuration] instance Show Configuration instance Eq Configuration