Skip to content

Commit bb47fa7

Browse files
committed
saw-script: Minimize LANGUAGE pragmas.
1 parent 0c9bfca commit bb47fa7

File tree

12 files changed

+4
-34
lines changed

12 files changed

+4
-34
lines changed

saw-script/src/SAWScript/AutoMatch.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
{-# LANGUAGE DeriveFunctor #-}
2-
{-# LANGUAGE FlexibleContexts #-}
31
{-# LANGUAGE LambdaCase #-}
42
{-# LANGUAGE OverloadedStrings #-}
53
{-# LANGUAGE RankNTypes #-}
64
{-# LANGUAGE RecordWildCards #-}
7-
{-# LANGUAGE ViewPatterns #-}
85

96
module SAWScript.AutoMatch where
107

saw-script/src/SAWScript/AutoMatch/Cryptol.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
{-# LANGUAGE ViewPatterns #-}
2-
{-# LANGUAGE RecordWildCards #-}
3-
{-# LANGUAGE NamedFieldPuns #-}
41
{-# LANGUAGE LambdaCase #-}
2+
{-# LANGUAGE NamedFieldPuns #-}
3+
{-# LANGUAGE RecordWildCards #-}
54

65
module SAWScript.AutoMatch.Cryptol where
76

saw-script/src/SAWScript/AutoMatch/JVM.hs

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

43
module SAWScript.AutoMatch.JVM where
54

saw-script/src/SAWScript/AutoMatch/LLVM.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
{-# LANGUAGE LambdaCase #-}
21
{-# LANGUAGE OverloadedStrings #-}
3-
{-# LANGUAGE TupleSections #-}
42

53
module SAWScript.AutoMatch.LLVM where
64

saw-script/src/SAWScript/Interpreter.hs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@ License : BSD3
55
Maintainer : huffman
66
Stability : provisional
77
-}
8-
{-# LANGUAGE FlexibleContexts #-}
98
{-# LANGUAGE FlexibleInstances #-}
10-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
119
{-# LANGUAGE ImplicitParams #-}
1210
{-# LANGUAGE LambdaCase #-}
1311
{-# LANGUAGE MultiParamTypeClasses #-}
12+
{-# LANGUAGE NondecreasingIndentation #-}
1413
{-# LANGUAGE OverloadedStrings #-}
15-
{-# LANGUAGE RankNTypes #-}
1614
{-# LANGUAGE ScopedTypeVariables #-}
17-
{-# LANGUAGE TupleSections #-}
18-
{-# LANGUAGE ViewPatterns #-}
19-
{-# LANGUAGE NondecreasingIndentation #-}
2015
-- See Note [-Wincomplete-uni-patterns and irrefutable patterns] in
2116
-- SAWScript.Typechecker
2217
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}

saw-script/src/SAWScript/Lexer.x

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
{-# LANGUAGE BangPatterns #-}
32
{-# LANGUAGE OverloadedStrings #-}
43
module SAWScript.Lexer
54
( scan

saw-script/src/SAWScript/Parser.y

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
3-
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
4-
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
5-
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
6-
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
7-
{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
8-
{-# OPTIONS_GHC -fno-warn-tabs #-}
92
{-# LANGUAGE OverloadedStrings #-}
103
module SAWScript.Parser
114
( parseModule

saw-script/src/SAWScript/REPL/Command.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ License : BSD3
55
Maintainer : huffman
66
Stability : provisional
77
-}
8-
{-# LANGUAGE CPP, PatternGuards, FlexibleContexts #-}
98
{-# LANGUAGE OverloadedStrings #-}
10-
{-# LANGUAGE ScopedTypeVariables #-}
11-
{-# LANGUAGE ViewPatterns #-}
129
-- TODO RGS: Do better (or at least comment why we do this)
1310
{-# OPTIONS_GHC -fno-warn-incomplete-uni-patterns #-}
1411

saw-script/src/SAWScript/REPL/Haskeline.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Maintainer : huffman
66
Stability : provisional
77
-}
88
{-# LANGUAGE CPP #-}
9-
{-# LANGUAGE PatternGuards #-}
109
{-# OPTIONS_GHC -fno-warn-orphans #-}
1110

1211
module SAWScript.REPL.Haskeline (repl, replBody) where

saw-script/src/SAWScript/REPL/Monad.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ Maintainer : huffman
66
Stability : provisional
77
-}
88
{-# LANGUAGE LambdaCase #-}
9-
{-# LANGUAGE PatternGuards #-}
10-
{-# LANGUAGE DeriveDataTypeable #-}
119
{-# LANGUAGE ScopedTypeVariables #-}
1210
{-# LANGUAGE StandaloneDeriving #-}
1311

0 commit comments

Comments
 (0)