The ConfigFileTH package

[ Tags: lgpl, library, parsing, template-haskell ] [ Propose Tags ]

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.2.*), ConfigFile (==1.0.6), parsec (==3.1.0), template-haskell [details]
License LGPL
Author Ville Tirronen
Maintainer Ville Tirronen <ville.e.t.tirronen@jyu.fi>
Category Parsing, Template Haskell
Uploaded Tue Nov 16 08:36:57 UTC 2010 by VilleTirronen
Distributions NixOS:0.2
Downloads 744 total (4 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-28 [all 6 reports]
Hackage Matrix CI

Modules

  • Data
    • ConfigFile
      • Data.ConfigFile.TH

Downloads

Maintainer's Corner

For package maintainers and hackage trustees