Skip to content

Commit 2e59c60

Browse files
nini-farouxjneira
andauthored
Add known broken tests for import placement (#2425)
Co-authored-by: Javier Neira <[email protected]>
1 parent 711e19c commit 2e59c60

25 files changed

+569
-22
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{-# OPTIONS_GHC -Wall #-}
2+
{-# LANGUAGE OverloadedStrings #-}
3+
{-# LANGUAGE RecordWildCards,
4+
OverloadedStrings #-}
5+
{-# OPTIONS_GHC -Wall,
6+
-Wno-unused-imports #-}
7+
import Data.Monoid
8+
9+
10+
-- some comment
11+
class Semigroup a => SomeData a
12+
13+
instance SomeData All
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{-# OPTIONS_GHC -Wall #-}
2+
{-# LANGUAGE OverloadedStrings #-}
3+
{-# LANGUAGE RecordWildCards,
4+
OverloadedStrings #-}
5+
{-# OPTIONS_GHC -Wall,
6+
-Wno-unused-imports #-}
7+
8+
9+
-- some comment
10+
class Semigroup a => SomeData a
11+
12+
instance SomeData All
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{-# LANGUAGE OverloadedStrings #-}
2+
3+
4+
{-# LANGUAGE TupleSections #-}
5+
import Data.Monoid
6+
7+
8+
9+
10+
class Semigroup a => SomeData a
11+
instance SomeData All
12+
13+
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
14+
15+
addOne :: Int -> Int
16+
addOne x = x + 1
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{-# LANGUAGE OverloadedStrings #-}
2+
3+
4+
{-# LANGUAGE TupleSections #-}
5+
6+
7+
8+
9+
class Semigroup a => SomeData a
10+
instance SomeData All
11+
12+
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
13+
14+
addOne :: Int -> Int
15+
addOne x = x + 1
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Data.Monoid
2+
class Semigroup a => SomeData a
3+
instance SomeData All
4+
5+
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
6+
7+
addOne :: Int -> Int
8+
addOne x = x + 1
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Semigroup a => SomeData a
2+
instance SomeData All
3+
4+
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
5+
6+
addOne :: Int -> Int
7+
addOne x = x + 1
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{-# LANGUAGE OverloadedStrings #-}
2+
3+
{-# OPTIONS_GHC -Wall,
4+
OPTIONS_GHC -Wno-unrecognised-pragmas #-}
5+
-- another comment
6+
-- oh
7+
{- multi line
8+
comment
9+
-}
10+
11+
{-# LANGUAGE TupleSections #-}
12+
import Data.Monoid
13+
{- some comment -}
14+
15+
-- again
16+
class Semigroup a => SomeData a
17+
instance SomeData All
18+
19+
#! nix-shell --pure -i runghc -p "haskellPackages.ghcWithPackages (hp: with hp; [ turtle ])"
20+
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
21+
22+
addOne :: Int -> Int
23+
addOne x = x + 1
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{-# LANGUAGE OverloadedStrings #-}
2+
3+
{-# OPTIONS_GHC -Wall,
4+
OPTIONS_GHC -Wno-unrecognised-pragmas #-}
5+
-- another comment
6+
-- oh
7+
{- multi line
8+
comment
9+
-}
10+
11+
{-# LANGUAGE TupleSections #-}
12+
{- some comment -}
13+
14+
-- again
15+
class Semigroup a => SomeData a
16+
instance SomeData All
17+
18+
#! nix-shell --pure -i runghc -p "haskellPackages.ghcWithPackages (hp: with hp; [ turtle ])"
19+
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
20+
21+
addOne :: Int -> Int
22+
addOne x = x + 1
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{-# LANGUAGE OverloadedStrings #-}
2+
3+
{-# OPTIONS_GHC -Wall #-}
4+
-- another comment
5+
6+
{-# LANGUAGE TupleSections #-}
7+
import Data.Monoid
8+
{- some comment -}
9+
10+
11+
class Semigroup a => SomeData a
12+
instance SomeData All
13+
14+
#! nix-shell --pure -i runghc -p "haskellPackages.ghcWithPackages (hp: with hp; [ turtle ])"
15+
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
16+
17+
addOne :: Int -> Int
18+
addOne x = x + 1
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{-# LANGUAGE OverloadedStrings #-}
2+
3+
{-# OPTIONS_GHC -Wall #-}
4+
-- another comment
5+
6+
{-# LANGUAGE TupleSections #-}
7+
{- some comment -}
8+
9+
10+
class Semigroup a => SomeData a
11+
instance SomeData All
12+
13+
#! nix-shell --pure -i runghc -p "haskellPackages.ghcWithPackages (hp: with hp; [ turtle ])"
14+
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
15+
16+
addOne :: Int -> Int
17+
addOne x = x + 1

0 commit comments

Comments
 (0)