You are not logged in.

#1 2025-11-24 04:12:58

9d8
Member
Registered: 2019-06-02
Posts: 9

[Solved] Haskell Packages Installed but showing as "missing"

I am trying to install the haskell-tidal package on my system for use with Tidal-Cycles. Even though I have the package installed along with all of its dependencies, it still fails with the following error:

ghci> import Sound.Tidal.Context

<no location info>: error:
    Could not load module ‘Sound.Tidal.Context’
    It is a member of the package ‘tidal-1.9.5-Cs7cRL25ajo9gGjMzqdD7L’
    which is unusable due to missing dependencies:
      clock-0.8.4-1cUGuQXmqrCBQUn40x7fVi hosc-0.20-CFzUK7RbYZ2HIaLBEfj1DF network-3.1.4.0-DqImTC0JtBs7wAjAQOfbw6 tidal-link-1.0.3-BhLvLtes61CGmsoGsSKCkr
ghci>

It says I'm missing haskell clock, network, tidal-link, and hosc. However I have those packages installed.

$ pacman -Q | grep -e 'haskell-\(clock\|hosc\|tidal-link\|network\)'
haskell-clock 0.8.4-171
haskell-hosc 0.20-138
haskell-network 3.1.4.0-120
haskell-tidal-link 1.0.3-3

ghc-pkg check shows the following errors

There are problems in package tidal-1.9.5:
  Warning: haddock-interfaces: /usr/share/doc/haskell-tidal/html/tidal.haddock doesn't exist or isn't a file
  Warning: haddock-html: /usr/share/doc/haskell-tidal/html doesn't exist or isn't a directory
  dependency "clock-0.8.4-1cUGuQXmqrCBQUn40x7fVi" doesn't exist
  dependency "hosc-0.20-CFzUK7RbYZ2HIaLBEfj1DF" doesn't exist
  dependency "network-3.1.4.0-DqImTC0JtBs7wAjAQOfbw6" doesn't exist
  dependency "tidal-link-1.0.3-BhLvLtes61CGmsoGsSKCkr" doesn't exist

I can confirm that the package files are installed in their correct locations

$ pacman -Ql haskell-clock
haskell-clock /usr/
haskell-clock /usr/lib/
haskell-clock /usr/lib/ghc-9.6.6/
haskell-clock /usr/lib/ghc-9.6.6/site-local/
haskell-clock /usr/lib/ghc-9.6.6/site-local/clock-0.8.4/
haskell-clock /usr/lib/ghc-9.6.6/site-local/clock-0.8.4/System/
haskell-clock /usr/lib/ghc-9.6.6/site-local/clock-0.8.4/System/Clock.dyn_hi
haskell-clock /usr/lib/ghc-9.6.6/site-local/clock-0.8.4/System/Clock/
haskell-clock /usr/lib/ghc-9.6.6/site-local/clock-0.8.4/System/Clock/Seconds.dyn_hi
haskell-clock /usr/lib/libHSclock-0.8.4-1cUGuQXmqrCBQUn40x7fVi-ghc9.6.6.so
haskell-clock /usr/share/
haskell-clock /usr/share/doc/
haskell-clock /usr/share/doc/haskell-clock/
haskell-clock /usr/share/haskell/
haskell-clock /usr/share/haskell/register/
haskell-clock /usr/share/haskell/register/haskell-clock.sh
haskell-clock /usr/share/haskell/unregister/
haskell-clock /usr/share/haskell/unregister/haskell-clock.sh
haskell-clock /usr/share/licenses/
haskell-clock /usr/share/licenses/haskell-clock/
haskell-clock /usr/share/licenses/haskell-clock/LICENSE

I have also tried running "ghc-pkg recache" which didn't resolve the issue. At this point I'm out of ideas other than switching to cabal for installing packages locally. I'd personally rather use the arch packages assuming they are functional. I'm new to Haskell so not sure if I'm hitting some kind of common pitfall. Any suggestions?

Last edited by 9d8 (2025-11-25 04:13:50)

Offline

#2 2025-11-25 04:13:14

9d8
Member
Registered: 2019-06-02
Posts: 9

Re: [Solved] Haskell Packages Installed but showing as "missing"

I solved the issue by reinstalling the "missing" packages.

sudo pacman -Rdd haskell-tidal-link haskell-hosc haskell-network haskell-clock
sudo pacman -Sy haskell-tidal-link haskell-hosc haskell-network haskell-clock
sudo ghc-pkg recache

I'm not exactly sure why I hit this issue or why reinstalling fixed it, but hopefully this can help someone else if they encounter the same issue.

Last edited by 9d8 (2025-11-25 04:14:42)

Offline

Board footer

Powered by FluxBB