Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4 from sol/master

Some minor .cabal/README fixes
  • Loading branch information...
commit 74a708048304e954e07803df1d5da7f99d3034be 2 parents 9c57471 + f06f4f6
@finnsson authored
Showing with 7 additions and 7 deletions.
  1. +4 −4 README.markdown
  2. +3 −3 test-framework-th.cabal
View
8 README.markdown
@@ -15,7 +15,7 @@ Haskell-module to automagically generate repetetive code when writing HUnit/Quic
### example
-- file SomeModule.hs
- {-# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell #-}
+ {-# LANGUAGE TemplateHaskell #-}
module SomeModule where
import Test.Framework.TH
import Test.Framework
@@ -35,7 +35,7 @@ is the same as
-- file SomeModule.hs
- {-# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell #-}
+ {-# LANGUAGE TemplateHaskell #-}
module SomeModule where
import Test.Framework.TH
import Test.Framework
@@ -66,7 +66,7 @@ is the same as
-- file SomeModule.hs
- {-# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell #-}
+ {-# LANGUAGE TemplateHaskell #-}
module SomeModule where
import Test.Framework.TH
import Test.Framework
@@ -85,7 +85,7 @@ is the same as
will automagically extract prop_reverse, case_1 and case_2 and run them as well as present them as belonging to the testGroup 'SomeModule'. The above code is the same as
-- file SomeModule.hs
- {-# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell #-}
+ {-# LANGUAGE TemplateHaskell #-}
module SomeModule where
import Test.Framework.TH
import Test.Framework
View
6 test-framework-th.cabal
@@ -13,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 #- )
+ > ( -# LANGUAGE TemplateHaskell #- )
> module SomeModule where
> import Test.Framework.TH
> import Test.Framework
@@ -31,7 +31,7 @@ description:
is the same as
.
> -- file SomeModule.hs
- > ( -# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell #- )
+ > ( -# LANGUAGE TemplateHaskell #- )
> module SomeModule where
> import Test.Framework.TH
> import Test.Framework
@@ -63,4 +63,4 @@ library
source-repository head
type: git
- location: https://github.com/finnsson/test-framework-th/
+ location: https://github.com/finnsson/test-generator.git
Please sign in to comment.
Something went wrong with that request. Please try again.