Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: text-1.2.3.2 parsec-3.1.14.0 Cabal-3.2.0.0 libiserv-8.10.2 ghci-8.10.2 ghc-8.10.2 ghc-boot-8.10.2 Continuing even though the plan contains dangerous reinstalls. Starting integer-logarithms-1.0.3.1 Starting deepseq-generics-0.2.0.0 Starting primitive-0.7.1.0 Starting bytestring-0.11.1.0 Building integer-logarithms-1.0.3.1 Building deepseq-generics-0.2.0.0 Building bytestring-0.11.1.0 Building primitive-0.7.1.0 Completed deepseq-generics-0.2.0.0 Completed integer-logarithms-1.0.3.1 Completed primitive-0.7.1.0 Completed bytestring-0.11.1.0 Starting hidapi-0.1.6 Starting binary-0.8.8.0 Building binary-0.8.8.0 Failed to install hidapi-0.1.6 Build log ( /home/builder/.cabal/logs/ghc-8.10.2/hidapi-0.1.6-PPvW8xIPtk13OIXUtRn1B.log ): cabal: Entering directory '/tmp/cabal-tmp-30909/hidapi-0.1.6' Configuring hidapi-0.1.6... cabal: Missing dependency on a foreign library: * Missing (or bad) C library: udev This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the library file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. cabal: Leaving directory '/tmp/cabal-tmp-30909/hidapi-0.1.6' Completed binary-0.8.8.0 cabal: Error: some packages failed to install: hidapi-0.1.6-PPvW8xIPtk13OIXUtRn1B failed during the configure step. The exception was: ExitFailure 1 switch-0.1.0.0-4MB6ZcG5wiw9qimKSFy1mC depends on switch-0.1.0.0 which failed to install.