Попытка установить бинарный пакет со стеком и получение следующей ошибки о «Monoid BitBuilder». Я пытался установить не ту вещь? Должен ли я поднять это как дефект где-то? Могу ли я это исправить сам? Версия стека:
linux:/tmp$ stack --version
Version 2.1.3, Git revision 636e3a759d51127df2b62f90772def126cdf6d1f (7735 commits) x86_64 hpack-0.31.2
linux:/tmp$ uname -a
Linux linux 4.18.0-17-generic #18~18.04.1-Ubuntu SMP Fri Mar 15 15:27:12 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Сообщение об ошибке установки:
linux:/tmp$ stack install binary-strict
binary-strict> configure
binary-strict> Warning: binary-strict.cabal:14:4: Tabs used as indentation at 14:4, 15:4
binary-strict> Configuring binary-strict-0.4.8.3...
binary-strict> build
binary-strict> Preprocessing library for binary-strict-0.4.8.3..
binary-strict> Building library for binary-strict-0.4.8.3..
binary-strict>
binary-strict> /tmp/stack8453/binary-strict-0.4.8.3/src/Data/Binary/Strict/BitGet.hs:2:16: warning:
binary-strict> -fglasgow-exts is deprecated: Use individual extensions instead
binary-strict> |
binary-strict> 2 | {-# OPTIONS_GHC -fglasgow-exts #-}
binary-strict> | ^^^^^^^^^^^^^^^^
binary-strict>
binary-strict> /tmp/stack8453/binary-strict-0.4.8.3/src/Data/Binary/Strict/Get.hs:2:16: warning:
binary-strict> -fglasgow-exts is deprecated: Use individual extensions instead
binary-strict> |
binary-strict> 2 | {-# OPTIONS_GHC -fglasgow-exts #-}
binary-strict> | ^^^^^^^^^^^^^^^^
binary-strict>
binary-strict> /tmp/stack8453/binary-strict-0.4.8.3/src/Data/Binary/Strict/IncrementalGet.hs:2:16: warning:
binary-strict> -fglasgow-exts is deprecated: Use individual extensions instead
binary-strict> |
binary-strict> 2 | {-# OPTIONS_GHC -fglasgow-exts #-}
binary-strict> | ^^^^^^^^^^^^^^^^
binary-strict> [1 of 9] Compiling Data.Binary.Strict.BitUtil
binary-strict> [2 of 9] Compiling Data.Binary.Strict.BitGet
binary-strict>
binary-strict> /tmp/stack8453/binary-strict-0.4.8.3/src/Data/Binary/Strict/BitGet.hs:67:1: warning: [-Wunused-imports]
binary-strict> The import of ‘Data.Bits’ is redundant
binary-strict> except perhaps to import instances from ‘Data.Bits’
binary-strict> To import instances alone, use: import Data.Bits()
binary-strict> |
binary-strict> 67 | import Data.Bits
binary-strict> | ^^^^^^^^^^^^^^^^
binary-strict>
binary-strict> /tmp/stack8453/binary-strict-0.4.8.3/src/Data/Binary/Strict/BitGet.hs:166:14: warning: [-Wdeprecations]
binary-strict> In the use of ‘inlinePerformIO’
binary-strict> (imported from Data.ByteString.Internal):
binary-strict> Deprecated: "If you think you know what you are doing, use 'unsafePerformIO'. If you are sure you know what you are doing, use 'unsafeDupablePerformIO'. If you enjoy sharing an address space with a malevolent agent of chaos, try 'accursedUnutterablePerformIO'."
binary-strict> |
binary-strict> 166 | return . BI.inlinePerformIO $ withForeignPtr fp $ \p -> peek (castPtr $ p `plusPtr` o)
binary-strict> | ^^^^^^^^^^^^^^^^^^
binary-strict> [3 of 9] Compiling Data.Binary.BitBuilder
binary-strict>
binary-strict> /tmp/stack8453/binary-strict-0.4.8.3/src/Data/Binary/BitBuilder.hs:83:10: error:
binary-strict> • No instance for (Semigroup BitBuilder)
binary-strict> arising from the superclasses of an instance declaration
binary-strict> • In the instance declaration for ‘Monoid BitBuilder’
binary-strict> |
binary-strict> 83 | instance Monoid BitBuilder where
binary-strict> | ^^^^^^^^^^^^^^^^^
binary-strict>
-- While building package binary-strict-0.4.8.3 using:
/home/user/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
linux:/tmp$