Skip to content

Commit c8768a2

Browse files
committed
Make standard LANGUAGE pragmas default-extensions
1 parent 1fc0119 commit c8768a2

File tree

7 files changed

+30
-37
lines changed

7 files changed

+30
-37
lines changed

Test/Tasty/Silver.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, OverloadedStrings #-}
2-
{-# LANGUAGE CPP #-}
1+
{-# LANGUAGE OverloadedStrings #-}
2+
33
{- |
44
This module provides a simplified interface. If you want more, see "Test.Tasty.Silver.Advanced".
55

Test/Tasty/Silver/Advanced.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{-# LANGUAGE RankNTypes, OverloadedStrings #-}
2-
{-# LANGUAGE CPP #-}
1+
{-# LANGUAGE OverloadedStrings #-}
32

43
module Test.Tasty.Silver.Advanced
54
( -- * Constructing golden tests

Test/Tasty/Silver/Filter.hs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
{-# LANGUAGE BangPatterns #-}
21
{-# LANGUAGE CPP #-}
3-
{-# LANGUAGE ExistentialQuantification #-}
4-
{-# LANGUAGE FlexibleInstances #-}
5-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
62
{-# LANGUAGE ImplicitParams #-}
7-
{-# LANGUAGE PatternGuards #-}
8-
{-# LANGUAGE ScopedTypeVariables #-}
93

104
-- | Regex filtering for test trees.
5+
116
module Test.Tasty.Silver.Filter
127
( filterWithRegex
138
, checkRF

Test/Tasty/Silver/Interactive.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
{-# LANGUAGE BangPatterns #-}
21
{-# LANGUAGE CPP #-}
3-
{-# LANGUAGE ExistentialQuantification #-}
4-
{-# LANGUAGE FlexibleContexts #-}
5-
{-# LANGUAGE FlexibleInstances #-}
6-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
72
{-# LANGUAGE ImplicitParams #-}
8-
{-# LANGUAGE PatternGuards #-}
9-
{-# LANGUAGE ScopedTypeVariables #-}
103

114
-- | Golden test management, interactive mode. Runs the tests, and asks
125
-- the user how to proceed in case of failure or missing golden standard.

Test/Tasty/Silver/Interactive/Run.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
2-
{-# LANGUAGE PatternGuards #-}
3-
{-# LANGUAGE ExistentialQuantification #-}
4-
{-# LANGUAGE ScopedTypeVariables #-}
5-
{-# LANGUAGE RankNTypes #-}
61

72
module Test.Tasty.Silver.Interactive.Run
83
( wrapRunTest

Test/Tasty/Silver/Internal.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE ExistentialQuantification #-}
3-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
4-
{-# LANGUAGE MultiParamTypeClasses #-}
5-
{-# LANGUAGE RankNTypes #-}
61

72
module Test.Tasty.Silver.Internal where
83

tasty-silver.cabal

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,13 @@ Source-repository head
4848
location: https://github.com/phile314/tasty-silver.git
4949

5050
library
51-
Default-language:
52-
Haskell2010
53-
Default-extensions:
54-
LambdaCase
55-
exposed-modules: Test.Tasty.Silver
56-
Test.Tasty.Silver.Advanced
57-
Test.Tasty.Silver.Filter
58-
Test.Tasty.Silver.Interactive
59-
Test.Tasty.Silver.Interactive.Run
60-
Test.Tasty.Silver.Internal
51+
exposed-modules:
52+
Test.Tasty.Silver
53+
Test.Tasty.Silver.Advanced
54+
Test.Tasty.Silver.Filter
55+
Test.Tasty.Silver.Interactive
56+
Test.Tasty.Silver.Interactive.Run
57+
Test.Tasty.Silver.Internal
6158

6259
build-depends:
6360
base >= 4.9 && < 5
@@ -86,6 +83,25 @@ library
8683
, text >= 0.11.0.0
8784
, transformers >= 0.3
8885

86+
default-language:
87+
Haskell2010
88+
default-extensions:
89+
BangPatterns
90+
ExistentialQuantification
91+
FlexibleContexts
92+
FlexibleInstances
93+
GeneralizedNewtypeDeriving
94+
LambdaCase
95+
MultiParamTypeClasses
96+
PatternGuards
97+
RankNTypes
98+
ScopedTypeVariables
99+
TypeSynonymInstances
100+
other-extensions:
101+
CPP
102+
ImplicitParams
103+
OverloadedStrings
104+
89105
ghc-options:
90106
-Wall
91107
-Wno-name-shadowing

0 commit comments

Comments
 (0)