containers-mini's People
containers-mini's Issues
Problem with benchmark (chapter 4)
Hi, and thanks for this awesome book!
I run into a problem and I would love some assistant.
First of all I am running arch linux and I have installed ghc with ghcup.
After I run cabal build
(which completes successfully) when I try to run cabal bench
I get the following:
[3 of 3] Compiling Main ( Bench.hs, /mnt/BACKUP/SpareTimeProjects/haskell/haskell-in-depth/containers-mini/dist-newstyle/build/x86_64-linux/ghc-8.10.4/containers-mini-0.1.0.0/b/bench/build/bench/bench-tmp/Main.o )
Bench.hs:4:1: error:
Could not find module ‘System.TimeIt’
There are files missing in the ‘timeit-2.0’ package,
try running 'ghc-pkg check'.
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
4 | import System.TimeIt
| ^^^^^^^^^^^^^^^^^^^^
Running ghc-pkg check
I got:
There are problems in package timeit-2.0:
Warning: library-dirs: /usr/local/lib/x86_64-linux-ghc-8.10.4/timeit-2.0-9cuf7StXLBAKHvaFJ7TqTD doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/share/doc/x86_64-linux-ghc-8.10.4/timeit-2.0/html/timeit.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/share/doc/x86_64-linux-ghc-8.10.4/timeit-2.0/html doesn't exist or isn't a directory
import-dirs: /usr/local/lib/x86_64-linux-ghc-8.10.4/timeit-2.0-9cuf7StXLBAKHvaFJ7TqTD doesn't exist or isn't a directory
cannot find any of ["System/TimeIt.hi","System/TimeIt.p_hi","System/TimeIt.dyn_hi"]
The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
timeit-2.0
which actually doesn't make sense as when I do ghc-pkg list
I get the package timeit
in there as expected:
Cabal-3.2.1.0
array-0.5.4.0
base-4.14.1.0
binary-0.8.8.0
bytestring-0.10.12.0
containers-0.6.2.1
deepseq-1.4.4.0
directory-1.3.6.0
exceptions-0.10.4
filepath-1.4.2.1
ghc-8.10.4
ghc-boot-8.10.4
ghc-boot-th-8.10.4
ghc-compact-0.1.0.0
ghc-heap-8.10.4
ghc-prim-0.6.1
ghci-8.10.4
haskeline-0.8.0.1
hpc-0.6.1.0
integer-gmp-1.0.3.0
libiserv-8.10.4
mtl-2.2.2
parsec-3.1.14.0
pretty-1.1.3.6
process-1.6.9.0
rts-1.0
stm-2.5.0.0
template-haskell-2.16.0.0
terminfo-0.4.1.4
text-1.2.4.1
time-1.9.3
timeit-2.0
transformers-0.5.6.2
unix-2.7.2.2
xhtml-3000.2.2.1
Can you help me resolve this issue?
PS:
In the previous part of the book you mentioned to install timeit with runhaskell command.
I end up doing that using --user
flag, as it normally tried to install it in /usr/local
(needed sudo). Is this a good thing to do? What is the common practice?
Thanks a lot! Awesome work!
UPDATE
Removing ghcup (and thus the timeit that I was installed using --user
flag, and then, reinstall everything solved the issue.
Running cabal build, downloaded the library for me, although that I don't think this is a proper solution on doing things.
Can you explained, why this happened?
Thanks!
PS2: Although it installed, running cabal list --installed
doesn't show timeit pkg. Why is that?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.