Skip to content

Commit 1504a40

Browse files
committed
Fix warnings
1 parent 6aac534 commit 1504a40

File tree

7 files changed

+2
-16
lines changed

7 files changed

+2
-16
lines changed

src/Python/Inline/Literal.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ module Python.Inline.Literal
1212
, fromPy'
1313
) where
1414

15-
import Control.Concurrent
16-
import Control.Exception
1715
import Control.Monad
1816
import Control.Monad.IO.Class
1917
import Control.Monad.Trans.Class
@@ -24,7 +22,6 @@ import Data.Word
2422
import Data.Foldable
2523
import Foreign.Ptr
2624
import Foreign.C.Types
27-
import Foreign.Marshal.Alloc
2825
import Foreign.Storable
2926

3027
import Language.C.Inline qualified as C

src/Python/Internal/EvalQQ.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@ module Python.Internal.EvalQQ
1414
, unindent
1515
) where
1616

17-
import Control.Exception
1817
import Control.Monad.IO.Class
1918
import Control.Monad.Trans.Class
2019
import Control.Monad.Trans.Cont
2120
import Data.Char
2221
import Foreign.C.Types
23-
import Foreign.C.String
24-
import Foreign.Marshal.Alloc
2522
import Foreign.Ptr
2623
import Foreign.Storable
2724
import System.Exit

src/Python/Internal/Program.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module Python.Internal.Program
1414
, withPyWCString
1515
) where
1616

17-
import Control.Exception
1817
import Control.Monad.Trans.Cont
1918
import Data.Coerce
2019
import Foreign.Ptr

src/Python/Types.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@ module Python.Types
1010
) where
1111

1212
import Data.Coerce
13-
1413
import Foreign.Ptr
15-
import Foreign.ForeignPtr
16-
import Language.C.Inline qualified as C
17-
1814
import GHC.ForeignPtr
19-
2015
import Python.Internal.Types
2116

2217
unsafeWithPyObject :: forall a. PyObject -> (Ptr PyObject -> Py a) -> Py a

test/TST/Callbacks.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-- |
22
module TST.Callbacks (tests) where
33

4-
import Control.Concurrent
54
import Test.Tasty
65
import Test.Tasty.HUnit
76
import Python.Inline

test/TST/Run.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ tests = testGroup "Run python"
1818
x
1919
|]
2020
-- Visible
21-
_ <- [py_| x |]
22-
[pye| x |]
21+
[py_| x |]
22+
_ <- [pye| x |]
2323
[pymain|
2424
x
2525
del x

test/TST/ToPy.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module TST.ToPy (tests) where
33

44
import Test.Tasty
55
import Test.Tasty.HUnit
6-
import Python.Inline
76
import Python.Inline.QQ
87

98
tests :: TestTree

0 commit comments

Comments
 (0)