Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ghc 7

  • Loading branch information...
commit 27ccb2037015c3be4315175832e5e250f4d5b459 1 parent e2f7095
@finnsson authored
View
2  src/Test/Framework/TH.hs
@@ -10,7 +10,7 @@
--
--
-----------------------------------------------------------------------------
-{-# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell #-}
+{-# OPTIONS_GHC -XTemplateHaskell #-}
module Test.Framework.TH (
defaultMainGenerator,
View
2  src/Test/Framework/TestTH.hs
@@ -1,4 +1,4 @@
-{-# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell #-}
+{-# OPTIONS_GHC -XTemplateHaskell #-}
module Test.Framework.TestTH where
import Test.Framework.TH
View
50 test-framework-th.cabal
@@ -1,14 +1,11 @@
name: test-framework-th
-version: 0.1.3
-cabal-version: -any
+version: 0.2.0
+cabal-version: >= 1.6
build-type: Simple
license: BSD3
+license-file: BSD3.txt
maintainer: Oscar Finnsson
-build-depends: base >= 4 && < 5, test-framework, language-haskell-extract, haskell-src-exts, haskell98, regex-posix, template-haskell
-stability:
homepage: http://github.com/finnsson/test-generator
-package-url:
-bug-reports:
synopsis: Automagically generate the HUnit- and Quickcheck-bulk-code using Template Haskell.
description:
@test-framework-th@ contains two interesting functions: @defaultMainGenerator@ and @testGroupGenerator@.
@@ -16,7 +13,7 @@ description:
@defaultMainGenerator@ will extract all functions beginning with case_ or prop_ in the module and put them in a testGroup.
.
> -- file SomeModule.hs
- > ( -# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell #- )
+ > { -# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell #- }
> module SomeModule where
> import Test.Framework.TH
> import Test.Framework
@@ -57,32 +54,13 @@ description:
(e.g. if you want to be able to call the testgroup from another module).
category: Testing
author: Oscar Finnsson & Emil Nordling
-tested-with:
-data-files:
-data-dir: ""
-extra-source-files:
-extra-tmp-files:
-exposed-modules: Test.Framework.TH
-exposed: True
-buildable: True
-build-tools:
-cpp-options:
-cc-options:
-ld-options:
-pkgconfig-depends:
-frameworks:
-c-sources:
-extensions:
-extra-libraries:
-extra-lib-dirs:
-includes:
-install-includes:
-include-dirs:
-hs-source-dirs: src
-other-modules:
-ghc-prof-options:
-ghc-shared-options:
-ghc-options:
-hugs-options:
-nhc98-options:
-jhc-options:
+
+library
+ exposed-modules: Test.Framework.TH
+ build-depends: base >= 4 && < 5, test-framework, language-haskell-extract >= 0.2, haskell-src-exts, haskell98, regex-posix, template-haskell
+ hs-source-dirs: src
+
+
+source-repository head
+ type: git
+ location: https://github.com/finnsson/test-framework-th/
Please sign in to comment.
Something went wrong with that request. Please try again.