Resolving dependencies... Build profile: -w ghc-9.2.4 -O0 In order, the following will be built (use -v for more details): - monad-peel-0.3 (first run) Configuring monad-peel-0.3... Preprocessing test suite 'test' for monad-peel-0.3.. Building test suite 'test' for monad-peel-0.3.. : warning: [-Wmissing-home-modules] These modules are needed for compilation but not listed in your .cabal file's other-modules: Control.Exception.Peel Control.Monad.IO.Peel Control.Monad.Trans.Peel [1 of 4] Compiling Control.Monad.Trans.Peel ( Control/Monad/Trans/Peel.hs, /home/builder/builder-dir/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.2.4/monad-peel-0.3/noopt/build/test/test-tmp/Control/Monad/Trans/Peel.o ) Control/Monad/Trans/Peel.hs:32:1: warning: [-Wdodgy-imports] Module Prelude does not export catch | 32 | import Prelude hiding (catch) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Control/Monad/Trans/Peel.hs:47:1: warning: [-Wunused-imports] The import of Data.Monoid is redundant except perhaps to import instances from Data.Monoid To import instances alone, use: import Data.Monoid() | 47 | import Data.Monoid | ^^^^^^^^^^^^^^^^^^ [2 of 4] Compiling Control.Monad.IO.Peel ( Control/Monad/IO/Peel.hs, /home/builder/builder-dir/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.2.4/monad-peel-0.3/noopt/build/test/test-tmp/Control/Monad/IO/Peel.o ) Control/Monad/IO/Peel.hs:40:1: warning: [-Wunused-imports] The import of Data.Monoid is redundant except perhaps to import instances from Data.Monoid To import instances alone, use: import Data.Monoid() | 40 | import Data.Monoid | ^^^^^^^^^^^^^^^^^^ [3 of 4] Compiling Control.Exception.Peel ( Control/Exception/Peel.hs, /home/builder/builder-dir/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.2.4/monad-peel-0.3/noopt/build/test/test-tmp/Control/Exception/Peel.o ) Control/Exception/Peel.hs:27:1: warning: [-Wdodgy-imports] Module Prelude does not export catch | 27 | import Prelude hiding (catch, ioError) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [4 of 4] Compiling Main ( test.hs, /home/builder/builder-dir/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.2.4/monad-peel-0.3/noopt/build/test/test-tmp/Main.o ) test.hs:27:7: error: " No instance for (MonadPeelIO (ListT IO)) arising from a use of testSuite " In the first argument of ($), namely testSuite "ListT" In the expression: testSuite "ListT" $ fmap head . runListT In the first argument of defaultMain, namely [testSuite "IdentityT" runIdentityT, testSuite "ListT" $ fmap head . runListT, testSuite "MaybeT" $ fmap fromJust . runMaybeT, testSuite "ReaderT" $ flip runReaderT "reader state", ....] | 27 | , testSuite "ListT" $ fmap head . runListT | ^^^^^^^^^ test.hs:126:9: error: " No instance for (MonadPeelIO (ErrorT String IO)) arising from a use of finally " In the second argument of ($), namely (liftIO (writeIORef i 2) >> throwError "throwError") `finally` (liftIO $ writeIORef i 3) In a stmt of a 'do' block: Left "throwError" <- runErrorT $ (liftIO (writeIORef i 2) >> throwError "throwError") `finally` (liftIO $ writeIORef i 3) In the expression: do i <- newIORef one Left "throwError" <- runErrorT $ (liftIO (writeIORef i 2) >> throwError "throwError") `finally` (liftIO $ writeIORef i 3) j <- readIORef i j @?= 3 | 126 | `finally` | ^^^^^^^^^