Skip to content
Browse files

Get rid of deprecated -fglasgow-exts in examples

  • Loading branch information...
1 parent d6b90e2 commit f06f4f60eace748868e64a8b8dae219d522968b6 @sol sol committed
Showing with 6 additions and 6 deletions.
  1. +4 −4 README.markdown
  2. +2 −2 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
4 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

0 comments on commit f06f4f6

Please sign in to comment.
Something went wrong with that request. Please try again.