Skip to content

Commit bdaaa86

Browse files
authored
Merge pull request haskell#396 from haskell/format-extensions
Format extensions and get rid of deprecated Rank2Types extension
2 parents 6e4d613 + d9b1f5d commit bdaaa86

File tree

21 files changed

+122
-58
lines changed

21 files changed

+122
-58
lines changed

vector/LICENSE

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ modification, are permitted provided that the following conditions are met:
66

77
- Redistributions of source code must retain the above copyright notice,
88
this list of conditions and the following disclaimer.
9-
9+
1010
- Redistributions in binary form must reproduce the above copyright notice,
1111
this list of conditions and the following disclaimer in the documentation
1212
and/or other materials provided with the distribution.
13-
13+
1414
- Neither name of the University nor the names of its contributors may be
1515
used to endorse or promote products derived from this software without
16-
specific prior written permission.
16+
specific prior written permission.
1717

1818
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF
1919
GLASGOW AND THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
@@ -27,4 +27,3 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2727
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2828
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
2929
DAMAGE.
30-

vector/src/Data/Vector.hs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
{-# LANGUAGE CPP
2-
, DeriveDataTypeable
3-
, FlexibleInstances
4-
, MultiParamTypeClasses
5-
, TypeFamilies
6-
, Rank2Types
7-
, BangPatterns
8-
#-}
1+
{-# LANGUAGE BangPatterns #-}
2+
{-# LANGUAGE CPP #-}
3+
{-# LANGUAGE DeriveDataTypeable #-}
4+
{-# LANGUAGE FlexibleInstances #-}
5+
{-# LANGUAGE MultiParamTypeClasses #-}
6+
{-# LANGUAGE RankNTypes #-}
7+
{-# LANGUAGE TypeFamilies #-}
98

109
-- |
1110
-- Module : Data.Vector
@@ -29,6 +28,7 @@
2928
-- For unboxed arrays, use "Data.Vector.Unboxed"
3029
--
3130

31+
3232
module Data.Vector (
3333
-- * Boxed vectors
3434
Vector, MVector,

vector/src/Data/Vector/Fusion/Bundle.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
{-# LANGUAGE CPP, FlexibleInstances, Rank2Types, BangPatterns #-}
2-
1+
{-# LANGUAGE BangPatterns #-}
2+
{-# LANGUAGE CPP #-}
3+
{-# LANGUAGE FlexibleInstances #-}
4+
{-# LANGUAGE RankNTypes #-}
35
-- |
46
-- Module : Data.Vector.Fusion.Bundle
57
-- Copyright : (c) Roman Leshchinskiy 2008-2010

vector/src/Data/Vector/Fusion/Bundle/Monadic.hs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
{-# LANGUAGE CPP, ExistentialQuantification, MultiParamTypeClasses, FlexibleInstances, Rank2Types, BangPatterns, KindSignatures, GADTs, ScopedTypeVariables #-}
2-
1+
{-# LANGUAGE BangPatterns #-}
2+
{-# LANGUAGE CPP #-}
3+
{-# LANGUAGE ExistentialQuantification #-}
4+
{-# LANGUAGE FlexibleInstances #-}
5+
{-# LANGUAGE GADTs #-}
6+
{-# LANGUAGE KindSignatures #-}
7+
{-# LANGUAGE MultiParamTypeClasses #-}
8+
{-# LANGUAGE RankNTypes #-}
9+
{-# LANGUAGE ScopedTypeVariables #-}
310
-- |
411
-- Module : Data.Vector.Fusion.Bundle.Monadic
512
-- Copyright : (c) Roman Leshchinskiy 2008-2010

vector/src/Data/Vector/Fusion/Stream/Monadic.hs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
{-# LANGUAGE CPP, ExistentialQuantification, MultiParamTypeClasses, FlexibleInstances, Rank2Types, BangPatterns, KindSignatures, GADTs, ScopedTypeVariables #-}
2-
1+
{-# LANGUAGE BangPatterns #-}
2+
{-# LANGUAGE CPP #-}
3+
{-# LANGUAGE ExistentialQuantification #-}
4+
{-# LANGUAGE FlexibleInstances #-}
5+
{-# LANGUAGE GADTs #-}
6+
{-# LANGUAGE KindSignatures #-}
7+
{-# LANGUAGE MultiParamTypeClasses #-}
8+
{-# LANGUAGE RankNTypes #-}
9+
{-# LANGUAGE ScopedTypeVariables #-}
310
-- |
411
-- Module : Data.Vector.Fusion.Stream.Monadic
512
-- Copyright : (c) Roman Leshchinskiy 2008-2010

vector/src/Data/Vector/Generic.hs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
{-# LANGUAGE CPP, Rank2Types, MultiParamTypeClasses, FlexibleContexts,
2-
TypeFamilies, ScopedTypeVariables, BangPatterns #-}
1+
{-# LANGUAGE BangPatterns #-}
2+
{-# LANGUAGE CPP #-}
3+
{-# LANGUAGE FlexibleContexts #-}
4+
{-# LANGUAGE MultiParamTypeClasses #-}
5+
{-# LANGUAGE RankNTypes #-}
6+
{-# LANGUAGE ScopedTypeVariables #-}
7+
{-# LANGUAGE TypeFamilies #-}
38
-- |
49
-- Module : Data.Vector.Generic
510
-- Copyright : (c) Roman Leshchinskiy 2008-2010

vector/src/Data/Vector/Generic/Base.hs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
{-# LANGUAGE Rank2Types, MultiParamTypeClasses, FlexibleContexts,
2-
TypeFamilies, ScopedTypeVariables, BangPatterns #-}
1+
{-# LANGUAGE BangPatterns #-}
32
{-# LANGUAGE CPP #-}
3+
{-# LANGUAGE FlexibleContexts #-}
4+
{-# LANGUAGE MultiParamTypeClasses #-}
5+
{-# LANGUAGE RankNTypes #-}
6+
{-# LANGUAGE ScopedTypeVariables #-}
7+
{-# LANGUAGE TypeFamilies #-}
48
#if __GLASGOW_HASKELL__ >= 800
59
{-# LANGUAGE TypeFamilyDependencies #-}
610
#endif

vector/src/Data/Vector/Generic/Mutable.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
{-# LANGUAGE CPP, MultiParamTypeClasses, FlexibleContexts, BangPatterns, TypeFamilies, ScopedTypeVariables #-}
1+
{-# LANGUAGE BangPatterns #-}
2+
{-# LANGUAGE CPP #-}
3+
{-# LANGUAGE FlexibleContexts #-}
4+
{-# LANGUAGE MultiParamTypeClasses #-}
5+
{-# LANGUAGE ScopedTypeVariables #-}
6+
{-# LANGUAGE TypeFamilies #-}
27
-- |
38
-- Module : Data.Vector.Generic.Mutable
49
-- Copyright : (c) Roman Leshchinskiy 2008-2010

vector/src/Data/Vector/Generic/Mutable/Base.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
{-# LANGUAGE CPP, MultiParamTypeClasses, BangPatterns, TypeFamilies #-}
1+
{-# LANGUAGE BangPatterns #-}
2+
{-# LANGUAGE CPP #-}
3+
{-# LANGUAGE MultiParamTypeClasses #-}
4+
{-# LANGUAGE TypeFamilies #-}
25
-- |
36
-- Module : Data.Vector.Generic.Mutable.Base
47
-- Copyright : (c) Roman Leshchinskiy 2008-2011

vector/src/Data/Vector/Generic/New.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
{-# LANGUAGE CPP, Rank2Types, FlexibleContexts, MultiParamTypeClasses #-}
2-
1+
{-# LANGUAGE CPP #-}
2+
{-# LANGUAGE FlexibleContexts #-}
3+
{-# LANGUAGE MultiParamTypeClasses #-}
4+
{-# LANGUAGE RankNTypes #-}
35
-- |
46
-- Module : Data.Vector.Generic.New
57
-- Copyright : (c) Roman Leshchinskiy 2008-2010
@@ -175,4 +177,3 @@ unsafeTail m = apply MVector.unsafeTail m
175177
unsafeTail (unstream s) = unstream (Bundle.tail s) #-}
176178

177179

178-

0 commit comments

Comments
 (0)