packages feed

ConfigFileTH

Template haskell for reading ConfigFiles.

view on Hackage

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.
versionuploadeduploaderchanges
0.22011-12-05 08:44 UTCVilleTirronen+17/−9 lines, 2 filesdep ~ConfigFiledep ~basedep ~parsec
0.12010-11-16 08:36 UTCVilleTirronen+815/−0 lines, 4 filesdep +ConfigFiledep +basedep +parsecsetup-changed

Dependencies of ConfigFileTH-0.2

ConfigFile >=1.0.6 && <2 1.1.3 → 1.1.4
2014-10-30 01:06 UTC1.1.4+539/−2 lines, 3 filesPVP: major bump suggested
2014-10-29 20:07 UTC1.1.3+57/−590 lines, 7 filesPVP ok
2014-05-09 03:42 UTC1.1.2+14/−3 lines, 2 filesPVP ok
2011-10-25 18:47 UTC1.1.1+7/−7 lines, 2 files
2011-10-21 15:16 UTC1.1.0+101/−7 lines, 5 filesdep −haskell98dep ~mtl

showing 5 of 10 versions

base >=4.3 && <5 4.22.0.0 → 4.22.1.0
2026-12-01 12:38 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

parsec >=3.1.0 && <4 3.1.17.0 → 3.1.18.0
2025-01-05 00:08 UTC3.1.18.0+159/−170 lines, 7 filesdep −faildep ~basedep ~bytestringdep ~mtlPVP: major bump suggested
2023-10-04 06:08 UTC3.1.17.0+112/−25 lines, 8 filesdep +deepseqdep ~basedep ~bytestringdep ~tastyPVP: major bump suggested
2023-01-08 20:47 UTC3.1.16.1+6/−2 lines, 3 filesPVP ok
2023-01-08 18:03 UTC3.1.16.0+124/−19 lines, 8 filesdep ~basePVP ok
2022-05-10 10:14 UTC3.1.15.1+19/−15 lines, 9 filesdep ~basedep ~mtldep ~textPVP ok

showing 5 of 27 versions

template-haskell >=0 2.23.0.0 → 2.24.0.0
2025-12-19 11:53 UTC2.24.0.0+606/−68 lines, 9 filesdep +ghc-internaldep ~basedep ~ghc-boot-thPVP ok
2024-12-16 09:29 UTC2.23.0.0+104/−5685 lines, 9 filesdep −ghc-primdep −prettydep ~basedep ~ghc-boot-thnew-uploaderPVP ok
2024-05-15 13:07 UTC2.22.0.0+176/−81 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok
2023-10-10 00:23 UTC2.21.0.0+275/−148 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok
2023-03-28 13:43 UTC2.20.0.0+215/−139 lines, 9 filesdep −filepathdep ~basedep ~ghc-boot-thPVP ok

showing 5 of 26 versions

Reverse dependencies

1 packages depend on ConfigFileTH

acme-everything 2018.11.18 requires ConfigFileTH >=0