conf
Parser for Haskell-based configuration files.
This package is designed to allow you to create configuration files
with declarative Haskell and parse the values back into Haskell code.
The benefit here is to have a configuration file in Haskell that does
not have to be recompiled - it is interpreted/parsed at runtime in a
type-safe manner.
Example usage:
> -- /path/to/my-config.hs
> foo = ["bar", "baz"]
> spam = Eggs
> -- Application source
> import Data.Conf
> import Data.Maybe
>
> data Spam = Eggs | Parrot | SomethingEntirelyDifferent
> deriving (Show, Read)
>
> getSpam :: Conf -> Spam
> getSpam = fromMaybe SomethingEntirelyDifferent . getConf "spam"
>
> getFoo :: Conf -> Maybe Int
> getFoo = getConf "foo"
>
> main = do
> conf <- readConf "my-config.hs"
> print $ getSpam conf -- Output: Eggs
> print $ getFoo conf -- Output: Nothing
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.1.1.0 | 2015-07-17 14:00 UTC | carymrobbins | +204/−39 lines, 7 filesdep +HUnitdep +confdep +test-frameworkdep ~base | |
| 0.1.0.0 | 2014-02-07 04:16 UTC | carymrobbins | +172/−0 lines, 7 filesdep +basedep +haskell-srcsetup-changed |
Dependencies of conf-0.1.1.0
HUnit >=0 1.6.1.0 → 1.6.2.0
| 2021-01-19 18:27 UTC | 1.6.2.0 | +48/−42 lines, 5 filesdep ~call-stackPVP: major bump suggested |
| 2020-10-31 12:09 UTC | 1.6.1.0 | +35/−21 lines, 4 filesPVP ok |
| 2017-03-20 01:42 UTC | 1.6.0.0 | +9/−5 lines, 4 filesdep ~basePVP ok |
| 2016-10-16 03:35 UTC | 1.5.0.0 | +47/−27 lines, 5 filesPVP ok |
| 2016-10-07 03:13 UTC | 1.4.0.0 | +761/−778 lines, 12 filesdep +call-stackPVP ok |
showing 5 of 22 versions
base >=4.6 && <4.8 4.7.0.2 → 4.22.1.0 newer than bounds
| 2026-12-01 12:38 UTC | 4.22.1.0 newer than bounds | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 newer than bounds | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 newer than bounds | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 newer than bounds | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 newer than bounds | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
haskell-src >=0 1.0.4.1 → 1.0.4.2
| 2025-08-29 05:59 UTC | 1.0.4.2 | +54/−49 lines, 4 filesdep −faildep −semigroupsdep ~basePVP: major bump suggested |
| 2024-09-22 19:26 UTC | 1.0.4.1 | +33/−16 lines, 3 filesPVP: major bump suggested |
| 2022-02-07 08:40 UTC | 1.0.4 | +9/−3 lines, 3 filesdep ~basePVP ok |
| 2022-02-07 08:30 UTC | 1.0.3.2 | +237/−171 lines, 9 filesdep +faildep +semigroupsdep ~arraydep ~basedep ~prettynew-uploaderPVP ok |
| 2019-11-09 18:24 UTC | 1.0.3.1 | +13/−21 lines, 4 filesdep −faildep −semigroupsdep ~arraydep ~basedep ~prettyPVP: major bump suggested |
showing 5 of 14 versions
test-framework >=0 0.8.2.2 → 0.8.2.3
| 2026-01-05 13:44 UTC | 0.8.2.3 | +15/−15 lines, 3 filesdep −bytestringdep −old-localedep −semigroupsdep ~ansi-terminaldep ~ansi-wl-pprintdep ~hostnamePVP: major bump suggested |
| 2025-04-11 08:21 UTC | 0.8.2.2 | +34/−35 lines, 3 filesdep −libxmldep −utf8-stringdep ~QuickCheckPVP ok |
| 2025-02-26 19:51 UTC | 0.8.2.1 | +1700/−1542 lines, 55 filesdep +utf8-stringdep −base-orphansdep ~HUnitdep ~QuickCheckdep ~ansi-terminalsetup-changednew-uploaderPVP: major bump suggested |
| 2017-12-30 17:50 UTC | 0.8.2.0 | +134/−79 lines, 13 filesdep +base-orphansdep +semigroupsdep ~QuickCheckdep ~ansi-terminaldep ~ansi-wl-pprintsetup-changedPVP: major bump suggested |
| 2015-01-09 04:04 UTC | 0.8.1.1 | +7/−2 lines, 2 filesdep ~ansi-terminaldep ~timePVP ok |
showing 5 of 34 versions
test-framework-hunit >=0 0.3.0.2 → 0.3.0.3
| 2026-01-05 13:43 UTC | 0.3.0.3 | +42/−40 lines, 4 filesdep −extensible-exceptionsdep ~HUnitdep ~basedep ~test-frameworksetup-changednew-uploaderPVP ok |
| 2015-09-04 15:42 UTC | 0.3.0.2 | +12/−4 lines, 2 filesdep ~HUnitnew-uploader |
| 2013-10-09 00:28 UTC | 0.3.0.1 | +10/−4 lines, 1 filesnew-uploader |
| 2012-12-04 19:56 UTC | 0.3.0 | +4/−1 lines, 2 filesdep ~test-frameworkPVP ok |
| 2012-01-27 12:54 UTC | 0.2.7 | +5/−5 lines, 2 filesPVP ok |
showing 5 of 12 versions
test-framework-th >=0 0.2.3 → 0.2.4
| 2012-12-02 12:03 UTC | 0.2.4 | +21/−10 lines, 2 filesPVP ok |
| 2012-11-17 13:55 UTC | 0.2.3 | +7/−2 lines, 2 filesdep ~language-haskell-extractPVP ok |
| 2011-08-10 17:47 UTC | 0.2.2 | +6/−6 lines, 2 filesdep −haskell98dep ~language-haskell-extractPVP ok |
| 2011-05-04 19:32 UTC | 0.2.1 | +2/−2 lines, 1 files |
| 2011-04-16 11:32 UTC | 0.2.0 | +39/−37 lines, 3 filesdep ~language-haskell-extract |
showing 5 of 7 versions
Reverse dependencies
1 packages depend on conf