Skip to content

Instantly share code, notes, and snippets.

@duog
Created August 24, 2017 01:16
Show Gist options
  • Save duog/0576bf37434fb372bcafb9cbc053d3c1 to your computer and use it in GitHub Desktop.
Save duog/0576bf37434fb372bcafb9cbc053d3c1 to your computer and use it in GitHub Desktop.
readGenericPackageDescription >>= writeGenericPackageDescription
name: doctest
version: 0.11.4
synopsis: Test interactive Haskell examples
description: The doctest program checks examples in source code comments.
It is modeled after doctest for Python
(<http://docs.python.org/library/doctest.html>).
.
Documentation is at
<https://github.com/sol/doctest#readme>.
category: Testing
bug-reports: https://github.com/sol/doctest/issues
homepage: https://github.com/sol/doctest#readme
license: MIT
license-file: LICENSE
copyright: (c) 2009-2017 Simon Hengel
author: Simon Hengel <sol@typeful.net>
maintainer: Simon Hengel <sol@typeful.net>
build-type: Simple
cabal-version: >= 1.8
extra-source-files: example/example.cabal
, example/src/Example.hs
, example/test/doctests.hs
source-repository head
type: git
location: https://github.com/sol/doctest
library
exposed-modules:
Test.DocTest
ghc-options:
-Wall
hs-source-dirs:
src, ghci-wrapper/src
other-modules:
Extract
, GhcUtil
, Interpreter
, Location
, Options
, PackageDBs
, Parse
, Paths_doctest
, Property
, Runner
, Runner.Example
, Run
, Util
, Sandbox
, Language.Haskell.GhciWrapper
build-depends:
base == 4.*
, base-compat >= 0.7.0
, ghc >= 7.0 && < 8.4
, syb >= 0.3
, code-page >= 0.1
, deepseq
, directory
, filepath
, process
, ghc-paths >= 0.1.0.9
, transformers
executable doctest
main-is:
Main.hs
ghc-options:
-Wall -threaded
hs-source-dirs:
driver
build-depends:
base == 4.*
, doctest
test-suite spec
main-is:
Spec.hs
type:
exitcode-stdio-1.0
ghc-options:
-Wall -threaded
cpp-options:
-DTEST
hs-source-dirs:
test, src, ghci-wrapper/src
c-sources:
test/integration/with-cbits/foo.c
build-depends:
base
, ghc
, syb
, code-page
, deepseq
, directory
, filepath
, process
, ghc-paths
, transformers
, base-compat
, HUnit
, hspec >= 1.5.1
, QuickCheck >= 2.8.2
, stringbuilder >= 0.4
, silently >= 1.2.4
, setenv
, with-location
, mockery
test-suite doctests
main-is:
doctests.hs
type:
exitcode-stdio-1.0
ghc-options:
-Wall -threaded
hs-source-dirs:
test
build-depends:
base
, doctest
name: doctest
version: 0.11.4
cabal-version: >=1.8
build-type: Simple
license: MIT
license-file: LICENSE
copyright: (c) 2009-2017 Simon Hengel
maintainer: Simon Hengel <sol@typeful.net>
homepage: https://github.com/sol/doctest#readme
bug-reports: https://github.com/sol/doctest/issues
synopsis: Test interactive Haskell examples
description:
The doctest program checks examples in source code comments.
It is modeled after doctest for Python
(<http://docs.python.org/library/doctest.html>).
.
Documentation is at
<https://github.com/sol/doctest#readme>.
category: Testing
author: Simon Hengel <sol@typeful.net>
extra-source-files:
example/example.cabal
example/src/Example.hs
example/test/doctests.hs
source-repository head
type: git
location: https://github.com/sol/doctest
library
exposed-modules:
Test.DocTest
build-depends:
base ==4.*,
base-compat >=0.7.0,
ghc >=7.0 && <8.4,
syb >=0.3,
code-page >=0.1,
deepseq -any,
directory -any,
filepath -any,
process -any,
ghc-paths >=0.1.0.9,
transformers -any
hs-source-dirs: src ghci-wrapper/src
other-modules:
Extract
GhcUtil
Interpreter
Location
Options
PackageDBs
Parse
Paths_doctest
Property
Runner
Runner.Example
Run
Util
Sandbox
Language.Haskell.GhciWrapper
ghc-options: -Wall
executable doctest
main-is: Main.hs
test-suite spec
type: exitcode-stdio-1.0
main-is: Spec.hs
build-depends:
base -any,
ghc -any,
syb -any,
code-page -any,
deepseq -any,
directory -any,
filepath -any,
process -any,
ghc-paths -any,
transformers -any,
base-compat -any,
HUnit -any,
hspec >=1.5.1,
QuickCheck >=2.8.2,
stringbuilder >=0.4,
silently >=1.2.4,
setenv -any,
with-location -any,
mockery -any
cpp-options: -DTEST
c-sources:
test/integration/with-cbits/foo.c
hs-source-dirs: test src ghci-wrapper/src
ghc-options: -Wall -threaded
test-suite doctests
type: exitcode-stdio-1.0
main-is: doctests.hs
build-depends:
base -any,
doctest -any
hs-source-dirs: test
ghc-options: -Wall -threaded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment