Skip to content

Commit 213f9ed

Browse files
authored
Merge pull request #2759 from GaloisInc/bh/minimize-pragmas
Minimize LANGUAGE pragmas
2 parents 0bd979d + be12526 commit 213f9ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+57
-473
lines changed

cryptol-saw-core/src/CryptolSAWCore/Cryptol.hs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
{-# OPTIONS_GHC -Wall #-}
2-
{-# LANGUAGE DoAndIfThenElse #-}
1+
{-# LANGUAGE BangPatterns #-}
32
{-# LANGUAGE OverloadedStrings #-}
4-
{-# LANGUAGE PatternGuards #-}
5-
{-# LANGUAGE ViewPatterns #-}
6-
{-# LANGUAGE TupleSections #-}
73
{-# LANGUAGE ScopedTypeVariables #-}
8-
{-# LANGUAGE BangPatterns #-}
94
{-# LANGUAGE TemplateHaskell #-}
5+
{-# LANGUAGE ViewPatterns #-}
106

117
{- |
128
Module : CryptolSAWCore.Cryptol

cryptol-saw-core/src/CryptolSAWCore/TypedTerm.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ License : BSD3
55
Maintainer : huffman
66
Stability : provisional
77
-}
8-
{-# LANGUAGE PatternGuards #-}
8+
99
module CryptolSAWCore.TypedTerm
1010
-- ppTypedTerm,
1111
-- ppTypedTermType,

saw-central/src/SAWCentral/AST.hs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@ License : BSD3
55
Maintainer : huffman
66
Stability : provisional
77
-}
8-
{-# LANGUAGE DeriveFunctor,DeriveFoldable,DeriveTraversable #-}
9-
{-# LANGUAGE OverloadedStrings #-}
10-
{-# LANGUAGE TypeOperators #-}
11-
{-# LANGUAGE FlexibleContexts #-}
128
{-# LANGUAGE LambdaCase #-}
13-
{-# LANGUAGE ViewPatterns #-}
149
{-# LANGUAGE NamedFieldPuns #-}
10+
{-# LANGUAGE OverloadedStrings #-}
11+
{-# LANGUAGE ViewPatterns #-}
1512

1613
module SAWCentral.AST
1714
( PrimitiveLifecycle(..)

saw-central/src/SAWCentral/Bisimulation.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ may handle more complex proofs.
6868

6969
{-# LANGUAGE LambdaCase #-}
7070
{-# LANGUAGE OverloadedStrings #-}
71-
{-# LANGUAGE TupleSections #-}
7271

7372
module SAWCentral.Bisimulation
7473
( BisimTheorem, proveBisimulation )

saw-central/src/SAWCentral/Builtins.hs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,11 @@ License : BSD3
55
Maintainer : atomb
66
Stability : provisional
77
-}
8-
{-# LANGUAGE ConstraintKinds #-}
9-
{-# LANGUAGE DeriveDataTypeable #-}
10-
{-# LANGUAGE FlexibleContexts #-}
8+
{-# LANGUAGE ImplicitParams #-}
119
{-# LANGUAGE LambdaCase #-}
1210
{-# LANGUAGE OverloadedStrings #-}
13-
{-# LANGUAGE Rank2Types #-}
1411
{-# LANGUAGE ScopedTypeVariables #-}
1512
{-# LANGUAGE ViewPatterns #-}
16-
{-# LANGUAGE TupleSections #-}
17-
{-# LANGUAGE PatternGuards #-}
18-
{-# LANGUAGE DoAndIfThenElse #-}
19-
{-# LANGUAGE NondecreasingIndentation #-}
20-
{-# LANGUAGE ImplicitParams #-}
2113

2214
module SAWCentral.Builtins where
2315

saw-central/src/SAWCentral/CongruenceClosure.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ License : BSD3
55
Maintainer : atomb
66
Stability : provisional
77
-}
8-
{-# LANGUAGE DoAndIfThenElse #-}
98

109
module SAWCentral.CongruenceClosure
1110
( -- * Functor type classes

saw-central/src/SAWCentral/Crucible/Common.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Maintainer : langston
66
Stability : provisional
77
-}
88

9-
{-# LANGUAGE ExistentialQuantification #-}
109
{-# LANGUAGE GADTs #-}
1110
{-# LANGUAGE OverloadedStrings #-}
1211
{-# LANGUAGE RankNTypes #-}

saw-central/src/SAWCentral/Crucible/Common/MethodSpec.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ language-) specific code. This technique is described in the paper \"Trees That
1010
Grow\", and is prevalent across the Crucible codebase.
1111
-}
1212

13-
{-# LANGUAGE ConstraintKinds #-}
1413
{-# LANGUAGE DataKinds #-}
1514
{-# LANGUAGE FlexibleContexts #-}
1615
{-# LANGUAGE FlexibleInstances #-}
1716
{-# LANGUAGE GADTs #-}
17+
{-# LANGUAGE KindSignatures #-}
1818
{-# LANGUAGE LambdaCase #-}
1919
{-# LANGUAGE MultiParamTypeClasses #-}
2020
{-# LANGUAGE OverloadedStrings #-}
@@ -23,7 +23,6 @@ Grow\", and is prevalent across the Crucible codebase.
2323
{-# LANGUAGE TemplateHaskell #-}
2424
{-# LANGUAGE TypeApplications #-}
2525
{-# LANGUAGE TypeFamilies #-}
26-
{-# LANGUAGE TypeFamilyDependencies #-}
2726
{-# LANGUAGE UndecidableInstances #-}
2827
{-# OPTIONS_GHC -Wno-orphans #-}
2928

saw-central/src/SAWCentral/Crucible/Common/Override.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@ Maintainer : langston
66
Stability : provisional
77
-}
88

9-
{-# LANGUAGE DataKinds #-}
109
{-# LANGUAGE DeriveGeneric #-}
1110
{-# LANGUAGE FlexibleContexts #-}
12-
{-# LANGUAGE GADTs #-}
1311
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
1412
{-# LANGUAGE LambdaCase #-}
1513
{-# LANGUAGE MultiParamTypeClasses #-}
1614
{-# LANGUAGE RankNTypes #-}
15+
{-# LANGUAGE ScopedTypeVariables #-}
1716
{-# LANGUAGE StandaloneDeriving #-}
1817
{-# LANGUAGE TemplateHaskell #-}
19-
{-# LANGUAGE TypeFamilies #-}
2018
{-# LANGUAGE UndecidableInstances #-}
2119

2220
module SAWCentral.Crucible.Common.Override

saw-central/src/SAWCentral/Crucible/Common/Setup/Type.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ Maintainer : langston
66
Stability : provisional
77
-}
88

9-
{-# LANGUAGE DeriveDataTypeable #-}
10-
{-# LANGUAGE DeriveFunctor #-}
11-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
12-
{-# LANGUAGE MultiParamTypeClasses #-}
13-
{-# LANGUAGE RankNTypes #-}
14-
{-# LANGUAGE StandaloneDeriving #-}
159
{-# LANGUAGE TemplateHaskell #-}
1610

1711
module SAWCentral.Crucible.Common.Setup.Type

0 commit comments

Comments
 (0)