fez-conf 1.0.1 → 1.0.2
raw patch · 6 files changed
+8/−206 lines, 6 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README +0/−39
- TODO +0/−1
- fez-conf.cabal +7/−3
- src/Fez/Data/Conf.hs +1/−0
- testsuite/runtests.hs +0/−48
- util/prefs/boring +0/−115
− README
@@ -1,39 +0,0 @@-fez-conf-------------author: Dino Morelli <dino@ui3.info>---*about*--Simple functions for loading config files.--Included are functions to load config data (key=value pairs in a text -file) into a (Map String String) or into a [String] in the form -["--key1=value1","--key2=value2"]. For more info and examples see -the generated haddock API documentation.--This module was motived by the desire to factor this repetitive configuration file parsing code out of several of my projects.--These functions offer very simple behavior which may be fine for many tasks. For those needing something that does more, including building and saving config data and .ini-style [section]s, may I suggest Data.ConfigFile <http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ConfigFile>.--This library is known to work with GHC 6.10.1 (and probably still 6.8.x and possibly 6.6.x. But I haven't tested these).---*install*--Build and install in the typical way for Cabalized software:-- $ runhaskell Setup.hs configure- $ runhaskell Setup.hs build- $ runhaskell Setup.hs test- $ runhaskell Setup.hs haddock- $ runhaskell Setup.hs install--(Note: this project *does* have unit tests. I encourage you to run them!)---* getting it *--You should be able to get fez-conf from Hackage or its own homepage:-<http://ui3.info/d/proj/fez-conf.html>
− TODO
@@ -1,1 +0,0 @@-- Would be great to use QuickCheck for testing instead of the two lonely HUnit tests we have now.
fez-conf.cabal view
@@ -1,6 +1,6 @@ name: fez-conf-version: 1.0.1-cabal-version: >= 1.2+version: 1.0.2+cabal-version: >= 1.8 build-type: Simple license: BSD3 license-file: LICENSE@@ -10,9 +10,13 @@ stability: experimental homepage: http://ui3.info/d/proj/fez-conf.html synopsis: Simple functions for loading config files-description: Simple functions for loading config files+description: Simple functions for loading config files. This entire package is DEPRECATED! Use Hsmisc.Data.SimpleConf in hsmisc category: Parsing tested-with: GHC>=6.10.1++source-repository head+ type: darcs+ location: http://ui3.info/darcs/fez-conf library build-depends: base >= 3 && < 5, containers, regex-compat
src/Fez/Data/Conf.hs view
@@ -15,6 +15,7 @@ <http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ConfigFile>. -} module Fez.Data.Conf+ {-# DEPRECATED "Use Hsmisc.Data.SimpleConf from hsmisc instead" #-} ( ConfMap, parseToMap , parseToArgs )
− testsuite/runtests.hs
@@ -1,48 +0,0 @@--- Copyright: 2009 Dino Morelli--- License: BSD3 (see LICENSE)--- Author: Dino Morelli <dino@ui3.info>--module Main- where--import Data.Map ( fromList )-import Test.HUnit- ( Test (..)- , assertBool, assertEqual, runTestTT- )--import Fez.Data.Conf ( parseToArgs, parseToMap )---configFileContents :: String-configFileContents = init $ unlines- [ "foo=one"- , "# a comment"- , ""- , "bar"- , "baz-blorp=2"- ]---test_parseToMap :: Test-test_parseToMap = TestCase $- assertEqual "parseToMap"- (fromList [("bar",""),("baz-blorp","2"),("foo","one")])- (parseToMap configFileContents)---test_parseToArgs :: Test-test_parseToArgs = TestCase $- assertEqual "parseToArgs"- ["--foo=one","--bar","--baz-blorp=2"]- (parseToArgs configFileContents)---main :: IO ()-main = do- runTestTT $ TestList- [ test_parseToMap- , test_parseToArgs- ]-- return ()
− util/prefs/boring
@@ -1,115 +0,0 @@-# Boring file regexps:--### compiler and interpreter intermediate files-# haskell (ghc) interfaces-\.hi$-\.hi-boot$-\.o-boot$-# object files-\.o$-\.o\.cmd$-# profiling haskell-\.p_hi$-\.p_o$-# haskell program coverage resp. profiling info-\.tix$-\.prof$-# fortran module files-\.mod$-# linux kernel-\.ko\.cmd$-\.mod\.c$-(^|/)\.tmp_versions($|/)-# *.ko files aren't boring by default because they might-# be Korean translations rather than kernel modules-# \.ko$-# python, emacs, java byte code-\.py[co]$-\.elc$-\.class$-# objects and libraries; lo and la are libtool things-\.(obj|a|exe|so|lo|la)$-# compiled zsh configuration files-\.zwc$-# Common LISP output files for CLISP and CMUCL-\.(fas|fasl|sparcf|x86f)$--### build and packaging systems-# cabal intermediates-\.installed-pkg-config-\.setup-config-# standard cabal build dir, might not be boring for everybody-# ^dist(/|$)-# autotools-(^|/)autom4te\.cache($|/)-(^|/)config\.(log|status)$-# microsoft web expression, visual studio metadata directories-\_vti_cnf$-\_vti_pvt$-# gentoo tools-\.revdep-rebuild.*-# generated dependencies-^\.depend$--### version control systems-# cvs-(^|/)CVS($|/)-\.cvsignore$-# cvs, emacs locks-^\.#-# rcs-(^|/)RCS($|/)-,v$-# subversion-(^|/)\.svn($|/)-# mercurial-(^|/)\.hg($|/)-# git-(^|/)\.git($|/)-# bzr-\.bzr$-# sccs-(^|/)SCCS($|/)-# darcs-(^|/)_darcs($|/)-(^|/)\.darcsrepo($|/)-^\.darcs-temp-mail$--darcs-backup[[:digit:]]+$-# gnu arch-(^|/)(\+|,)-(^|/)vssver\.scc$-\.swp$-(^|/)MT($|/)-(^|/)\{arch\}($|/)-(^|/).arch-ids($|/)-# bitkeeper-(^|/)BitKeeper($|/)-(^|/)ChangeSet($|/)--### miscellaneous-# backup files-~$-\.bak$-\.BAK$-# patch originals and rejects-\.orig$-\.rej$-# X server-\..serverauth.*-# image spam-\#-(^|/)Thumbs\.db$-# vi, emacs tags-(^|/)(tags|TAGS)$-#(^|/)\.[^/]-# core dumps-(^|/|\.)core$-# partial broken files (KIO copy operations)-\.part$-# waf files, see http://code.google.com/p/waf/-(^|/)\.waf-[[:digit:].]+-[[:digit:]]+($|/)-(^|/)\.lock-wscript$-# mac os finder-(^|/)\.DS_Store$-# cabal-(^|/)dist($|/)