Skip to content

Commit

Permalink
Get rid of deprecated -fglasgow-exts in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Jun 20, 2011
1 parent d6b90e2 commit f06f4f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test-framework-th.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f06f4f6

Please sign in to comment.