fez-conf: Simple functions for loading config files

[ bsd3, library, parsing ] [ Propose Tags ]

Simple functions for loading config files


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0, 1.0.1, 1.0.2, 1.0.3
Dependencies base (>=3 && <5), containers, regex-compat [details]
License BSD-3-Clause
Copyright 2009 Dino Morelli
Author Dino Morelli
Maintainer Dino Morelli <dino@ui3.info>
Category Parsing
Home page http://ui3.info/d/proj/fez-conf.html
Uploaded by DinoMorelli at 2009-06-08T03:46:11Z
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 3298 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for fez-conf-1.0.1

[back to package description]
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>