@hackage fez-conf1.0.0

Simple functions for loading config files

fez-conf

author: Dino Morelli dino@ui3.info

about

Simple functions for loading config files.

Included are functions to load config data (key=value pairs in a text file) into a (Map String String) or into a [String] in the form ["--key1=value1","--key2=value2"]. For more info and examples see the generated haddock API documentation.

This module was motived by the desire to factor this repetitive configuration file parsing code out of several of my projects.

These functions offer very simple behavior which may be fine for many tasks. For those needing something that does more, including building and saving config data and .ini-style [section]s, may I suggest Data.ConfigFile http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ConfigFile.

This library is known to work with GHC 6.10.1 (and probably still 6.8.x and possibly 6.6.x. But I haven't tested these).

install

Build and install in the typical way for Cabalized software:

$ runhaskell Setup.hs configure $ runhaskell Setup.hs build $ runhaskell Setup.hs test $ runhaskell Setup.hs haddock $ runhaskell Setup.hs install

(Note: this project does have unit tests. I encourage you to run them!)

  • getting it *

You should be able to get fez-conf from Hackage or its own homepage: http://ui3.info/d/proj/fez-conf.html