[Pkg-haskell-commits] darcs: haskell-optparse-applicative: Initial Check-In
Clint Adams
clint at debian.org
Sat Nov 17 18:38:55 UTC 2012
Sat Nov 17 18:38:19 UTC 2012 Clint Adams <clint at debian.org>
* Initial Check-In
Ignore-this: d0e8b855f69db079725e502eede3e570
A ./changelog
A ./compat
A ./control
A ./copyright
A ./patches/
A ./patches/series
A ./patches/tests-examples.diff
A ./rules
A ./source/
A ./source/format
A ./watch
Sat Nov 17 18:38:19 UTC 2012 Clint Adams <clint at debian.org>
* Initial Check-In
Ignore-this: d0e8b855f69db079725e502eede3e570
diff -rN -u old-haskell-optparse-applicative//changelog new-haskell-optparse-applicative//changelog
--- old-haskell-optparse-applicative//changelog 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-optparse-applicative//changelog 2012-11-17 18:38:55.219722803 +0000
@@ -0,0 +1,5 @@
+haskell-optparse-applicative (0.4.1-1) experimental; urgency=low
+
+ * Initial release.
+
+ -- Clint Adams <clint at debian.org> Sat, 17 Nov 2012 13:10:34 -0500
diff -rN -u old-haskell-optparse-applicative//compat new-haskell-optparse-applicative//compat
--- old-haskell-optparse-applicative//compat 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-optparse-applicative//compat 2012-11-17 18:38:55.219722803 +0000
@@ -0,0 +1 @@
+7
diff -rN -u old-haskell-optparse-applicative//control new-haskell-optparse-applicative//control
--- old-haskell-optparse-applicative//control 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-optparse-applicative//control 2012-11-17 18:38:55.219722803 +0000
@@ -0,0 +1,70 @@
+Source: haskell-optparse-applicative
+Section: haskell
+Priority: extra
+Maintainer: Debian Haskell Group <pkg-haskell-maintainers at lists.alioth.debian.org>
+Uploaders: Clint Adams <clint at debian.org>
+Build-Depends: debhelper (>= 7)
+ , cdbs
+ , haskell-devscripts (>= 0.8.13)
+ , ghc
+ , ghc-prof
+ , libghc-transformers-dev (>> 0.2)
+ , libghc-transformers-dev (<< 0.4)
+ , libghc-transformers-prof
+ , libghc-hunit-dev (>> 1.2)
+ , libghc-hunit-dev (<< 1.3)
+ , libghc-test-framework-dev (>> 0.6)
+ , libghc-test-framework-dev (<< 0.7)
+ , libghc-test-framework-hunit-dev (>> 0.2)
+ , libghc-test-framework-hunit-dev (<< 0.3)
+ , libghc-test-framework-th-prime-dev (>> 0.0)
+ , libghc-test-framework-th-prime-dev (<< 0.1)
+Build-Depends-Indep: ghc-doc
+ , libghc-transformers-doc
+Standards-Version: 3.9.4
+Homepage: http://hackage.haskell.org/package/optparse-applicative
+Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-optparse-applicative
+Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-optparse-applicative
+
+Package: libghc-optparse-applicative-dev
+Architecture: any
+Depends: ${haskell:Depends}
+ , ${shlibs:Depends}
+ , ${misc:Depends}
+Recommends: ${haskell:Recommends}
+Suggests: ${haskell:Suggests}
+Provides: ${haskell:Provides}
+Description: utilities and combinators for parsing command-line options
+ This is a library for constructing command-line option parsers in the
+ applicative style.
+ .
+ This package provides a library for the Haskell programming language.
+ See http://www.haskell.org/ for more information on Haskell.
+
+Package: libghc-optparse-applicative-prof
+Architecture: any
+Depends: ${haskell:Depends}
+ , ${misc:Depends}
+Recommends: ${haskell:Recommends}
+Suggests: ${haskell:Suggests}
+Provides: ${haskell:Provides}
+Description: utilities and combinators for parsing command-line options; profiling libs
+ This is a library for constructing command-line option parsers in the
+ applicative style.
+ .
+ This package provides a library for the Haskell programming language, compiled
+ for profiling. See http://www.haskell.org/ for more information on Haskell.
+
+Package: libghc-optparse-applicative-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, ${haskell:Depends}
+Recommends: ${haskell:Recommends}
+Suggests: ${haskell:Suggests}
+Description: utilities and combinators for parsing command-line options; documentation
+ This is a library for constructing command-line option parsers in the
+ applicative style.
+ .
+ This package provides the documentation for a library for the Haskell
+ programming language.
+ See http://www.haskell.org/ for more information on Haskell.
diff -rN -u old-haskell-optparse-applicative//copyright new-haskell-optparse-applicative//copyright
--- old-haskell-optparse-applicative//copyright 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-optparse-applicative//copyright 2012-11-17 18:38:55.219722803 +0000
@@ -0,0 +1,40 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: optparse-applicative
+Upstream-Contact: Paolo Capriotti <p.capriotti at gmail.com>
+Source: http://hackage.haskell.org/package/optparse-applicative
+
+Files: *
+Copyright: 2012 Paolo Capriotti
+License: BSD3
+
+Files: debian/*
+Copyright: 2012 Clint Adams
+License: ISC
+
+License: BSD3
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+ .
+ * Neither the name of Paolo Capriotti nor the names of other
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff -rN -u old-haskell-optparse-applicative//patches/series new-haskell-optparse-applicative//patches/series
--- old-haskell-optparse-applicative//patches/series 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-optparse-applicative//patches/series 2012-11-17 18:38:55.223722957 +0000
@@ -0,0 +1 @@
+tests-examples.diff
diff -rN -u old-haskell-optparse-applicative//patches/tests-examples.diff new-haskell-optparse-applicative//patches/tests-examples.diff
--- old-haskell-optparse-applicative//patches/tests-examples.diff 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-optparse-applicative//patches/tests-examples.diff 2012-11-17 18:38:55.223722957 +0000
@@ -0,0 +1,270 @@
+Index: optparse-applicative-0.4.1/tests/Examples/Alternatives.hs
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ optparse-applicative-0.4.1/tests/Examples/Alternatives.hs 2012-11-17 18:24:59.173793442 +0000
+@@ -0,0 +1,18 @@
++module Examples.Alternatives where
++
++import Options.Applicative
++
++data Value = A | B
++ deriving (Eq, Show)
++
++values :: Parser [Value]
++values = many $ a <|> b
++
++a :: Parser Value
++a = flag' A (short 'a')
++
++b :: Parser Value
++b = flag' B (short 'b')
++
++opts :: ParserInfo [Value]
++opts = info values idm
+Index: optparse-applicative-0.4.1/tests/Examples/Cabal.hs
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ optparse-applicative-0.4.1/tests/Examples/Cabal.hs 2012-11-17 18:25:10.345787777 +0000
+@@ -0,0 +1,116 @@
++{-# LANGUAGE Arrows #-}
++module Examples.Cabal where
++
++import Options.Applicative
++import Options.Applicative.Arrows
++
++data Args = Args CommonOpts Command
++ deriving Show
++
++data CommonOpts = CommonOpts
++ { optVerbosity :: Int }
++ deriving Show
++
++data Command
++ = Install ConfigureOpts InstallOpts
++ | Update
++ | Configure ConfigureOpts
++ | Build BuildOpts
++ deriving Show
++
++data InstallOpts = InstallOpts
++ { instReinstall :: Bool
++ , instForce :: Bool }
++ deriving Show
++
++data ConfigureOpts = ConfigureOpts
++ { configTests :: Bool
++ , configFlags :: [String] }
++ deriving Show
++
++data BuildOpts = BuildOpts
++ { buildDir :: FilePath }
++ deriving Show
++
++parser :: Parser Args
++parser = runA $ proc () -> do
++ opts <- asA commonOpts -< ()
++ cmds <- (asA . subparser)
++ ( command "install"
++ (info installParser
++ (progDesc "Installs a list of packages"))
++ & command "update"
++ (info updateParser
++ (progDesc "Updates list of known packages"))
++ & command "configure"
++ (info configureParser
++ (progDesc "Prepare to build the package"))
++ & command "build"
++ (info buildParser
++ (progDesc "Make this package ready for installation")) ) -< ()
++ A helper -< Args opts cmds
++
++commonOpts :: Parser CommonOpts
++commonOpts = CommonOpts
++ <$> option
++ ( short 'v'
++ & long "verbose"
++ & metavar "LEVEL"
++ & help "Set verbosity to LEVEL"
++ & value 0 )
++
++installParser :: Parser Command
++installParser = runA $ proc () -> do
++ config <- asA configureOpts -< ()
++ inst <- asA installOpts -< ()
++ A helper -< Install config inst
++
++installOpts :: Parser InstallOpts
++installOpts = runA $ proc () -> do
++ reinst <- asA (switch (long "reinstall")) -< ()
++ force <- asA (switch (long "force-reinstall")) -< ()
++ returnA -< InstallOpts
++ { instReinstall = reinst
++ , instForce = force }
++
++updateParser :: Parser Command
++updateParser = runA $ proc () ->
++ A helper -< Update
++
++configureParser :: Parser Command
++configureParser = runA $ proc () -> do
++ config <- asA configureOpts -< ()
++ A helper -< Configure config
++
++configureOpts :: Parser ConfigureOpts
++configureOpts = runA $ proc () -> do
++ tests <- (asA . switch)
++ ( long "enable-tests"
++ & help "Enable compilation of test suites" ) -< ()
++ flags <- (asA . many . strOption)
++ ( short 'f'
++ & long "flags"
++ & metavar "FLAGS"
++ & help "Enable the given flag" ) -< ()
++ returnA -< ConfigureOpts tests flags
++
++buildParser :: Parser Command
++buildParser = runA $ proc () -> do
++ opts <- asA buildOpts -< ()
++ A helper -< Build opts
++
++buildOpts :: Parser BuildOpts
++buildOpts = runA $ proc () -> do
++ bdir <- (asA . strOption)
++ ( long "builddir"
++ & metavar "DIR"
++ & value "dist" ) -< ()
++ returnA -< BuildOpts bdir
++
++pinfo :: ParserInfo Args
++pinfo = info parser idm
++
++main :: IO ()
++main = do
++ r <- execParser pinfo
++ print r
+Index: optparse-applicative-0.4.1/tests/Examples/Commands.hs
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ optparse-applicative-0.4.1/tests/Examples/Commands.hs 2012-11-17 18:25:21.445782141 +0000
+@@ -0,0 +1,32 @@
++module Examples.Commands where
++
++import Data.List
++import Options.Applicative
++
++data Sample
++ = Hello [String]
++ | Goodbye
++ deriving Show
++
++hello :: Parser Sample
++hello = Hello <$> arguments str (metavar "TARGET...")
++
++sample :: Parser Sample
++sample = subparser
++ ( command "hello"
++ (info hello
++ (progDesc "Print greeting"))
++ & command "goodbye"
++ (info (pure Goodbye)
++ (progDesc "Say goodbye"))
++ )
++
++run :: Sample -> IO ()
++run (Hello targets) = putStrLn $ "Hello, " ++ intercalate ", " targets ++ "!"
++run Goodbye = putStrLn "Goodbye."
++
++opts :: ParserInfo Sample
++opts = info sample idm
++
++main :: IO ()
++main = execParser opts >>= run
+Index: optparse-applicative-0.4.1/tests/Examples/Hello.hs
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ optparse-applicative-0.4.1/tests/Examples/Hello.hs 2012-11-17 18:25:31.689776931 +0000
+@@ -0,0 +1,31 @@
++module Examples.Hello where
++
++import Options.Applicative
++
++data Sample = Sample
++ { hello :: String
++ , quiet :: Bool }
++ deriving Show
++
++sample :: Parser Sample
++sample = Sample
++ <$> strOption
++ ( long "hello"
++ & metavar "TARGET"
++ & help "Target for the greeting" )
++ <*> switch
++ ( long "quiet"
++ & help "Whether to be quiet" )
++
++greet :: Sample -> IO ()
++greet (Sample h False) = putStrLn $ "Hello, " ++ h
++greet _ = return ()
++
++main :: IO ()
++main = execParser opts >>= greet
++
++opts :: ParserInfo Sample
++opts = info (sample <**> helper)
++ ( fullDesc
++ & progDesc "Print a greeting for TARGET"
++ & header "hello - a test for optparse-applicative" )
+Index: optparse-applicative-0.4.1/tests/alt.err.txt
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ optparse-applicative-0.4.1/tests/alt.err.txt 2012-11-17 18:32:22.725494500 +0000
+@@ -0,0 +1,6 @@
++Usage: alt (--virtual-machine VM | --cloud-service CS | --dry-run)
++
++Available options:
++ --virtual-machine VM Virtual machine name
++ --cloud-service CS Cloud service name
++ -h,--help Show this help text
+Index: optparse-applicative-0.4.1/tests/cabal.err.txt
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ optparse-applicative-0.4.1/tests/cabal.err.txt 2012-11-17 18:32:33.225486762 +0000
+@@ -0,0 +1,7 @@
++Usage: cabal configure [--enable-tests] [-f|--flags FLAGS]
++ Prepare to build the package
++
++Available options:
++ --enable-tests Enable compilation of test suites
++ -f,--flags FLAGS Enable the given flag
++ -h,--help Show this help text
+Index: optparse-applicative-0.4.1/tests/commands.err.txt
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ optparse-applicative-0.4.1/tests/commands.err.txt 2012-11-17 18:32:46.337477097 +0000
+@@ -0,0 +1,5 @@
++Usage: commands COMMAND
++
++Available commands:
++ hello Print greeting
++ goodbye Say goodbye
+Index: optparse-applicative-0.4.1/tests/hello.err.txt
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ optparse-applicative-0.4.1/tests/hello.err.txt 2012-11-17 18:32:55.161470593 +0000
+@@ -0,0 +1,9 @@
++hello - a test for optparse-applicative
++
++Usage: hello --hello TARGET [--quiet]
++ Print a greeting for TARGET
++
++Available options:
++ --hello TARGET Target for the greeting
++ --quiet Whether to be quiet
++ -h,--help Show this help text
+Index: optparse-applicative-0.4.1/tests/nested.err.txt
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ optparse-applicative-0.4.1/tests/nested.err.txt 2012-11-17 18:33:14.957455997 +0000
+@@ -0,0 +1 @@
++Usage: nested c b -a A
diff -rN -u old-haskell-optparse-applicative//rules new-haskell-optparse-applicative//rules
--- old-haskell-optparse-applicative//rules 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-optparse-applicative//rules 2012-11-17 18:38:55.223722957 +0000
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+DEB_ENABLE_TESTS = yes
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/hlibrary.mk
diff -rN -u old-haskell-optparse-applicative//source/format new-haskell-optparse-applicative//source/format
--- old-haskell-optparse-applicative//source/format 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-optparse-applicative//source/format 2012-11-17 18:38:55.223722957 +0000
@@ -0,0 +1 @@
+3.0 (quilt)
diff -rN -u old-haskell-optparse-applicative//watch new-haskell-optparse-applicative//watch
--- old-haskell-optparse-applicative//watch 1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-optparse-applicative//watch 2012-11-17 18:38:55.223722957 +0000
@@ -0,0 +1,5 @@
+version=3
+opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\
+filenamemangle=s|(.*)/$|optparse-applicative-$1.tar.gz|" \
+ http://hackage.haskell.org/packages/archive/optparse-applicative \
+ ([\d\.]*\d)/
More information about the Pkg-haskell-commits
mailing list