Permalink
Browse files

Merge pull request #4 from sol/master

Some minor .cabal/README fixes
  • Loading branch information...
2 parents 9c57471 + f06f4f6 commit 74a708048304e954e07803df1d5da7f99d3034be @finnsson committed Jun 21, 2011
Showing with 7 additions and 7 deletions.
  1. +4 −4 README.markdown
  2. +3 −3 test-framework-th.cabal
View
@@ -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
@@ -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

0 comments on commit 74a7080

Please sign in to comment.