The ConfigFileTH package
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
| Versions | 0.1, 0.2 |
|---|---|
| Dependencies | base (≥4.3 & <5), ConfigFile (≥1.0.6 & <2), parsec (≥3.1.0 & <4), template-haskell |
| License | LGPL |
| Author | Ville Tirronen |
| Maintainer | Ville Tirronen <ville.e.t.tirronen@jyu.fi> |
| Category | Parsing, Template Haskell |
| Upload date | Mon Dec 5 08:44:44 UTC 2011 |
| Uploaded by | VilleTirronen |
| Built on | ghc-7.2 |
Modules
- Data
- ConfigFile
Downloads
- ConfigFileTH-0.2.tar.gz (Cabal source package)
- package description (included in the package)