The ConfigFileTH package

[Tags: lgpl, library]

This module provides syntax for concise definitions of config files from Data.ConfigFile through template haskell. For example, the following splice, $(genConf Example [$conf| elbow/center -> ec :: Double elbow/min -> emi :: Double elbow/max -> ema :: Double |]) resolves into declaration of the following datatype data Example = Example ec :: Double ,emi :: Double ,ema :: Double and a function loadExample :: (MonadIO m) => FilePath -> m (Either CPError Example) , which uses Data.ConfigFile to read a values for the above struct from a file.


Properties

Versions0.1, 0.2
Dependenciesbase (==4.2.*), ConfigFile (==1.0.6), parsec (==3.1.0), template-haskell
LicenseLGPL
AuthorVille Tirronen
MaintainerVille Tirronen <ville.e.t.tirronen@jyu.fi>
CategoryParsing, Template Haskell
Upload dateTue Nov 16 08:36:57 UTC 2010
Uploaded byVilleTirronen
Downloads243 total (25 in last 30 days)

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees