Hello,
having just installed TidalCycles on a Mac and run it with Pulsar, I
am looking to use it on EMACS as well. The online documentation
says that the path should be set as follows:
(setq tidal-boot-script-path "~/.cabal/share/x86_64-osx-ghc-8.8.4/tidal-1.7.4/BootTidal.hs")
But I have no ~/.cabal/ folder because I had installed Haskell with homebrew.
Where should I look for the BootTidal.hs file?
Thanks,
Iannis Zannos
Hi Iannis, I had the exact same problem yesterday. The solution I came up with was to create the file, put it somewhere and then simply use that path.
Hi durandal, I tried that solution already, but it did not work for me: tidal misses some Haskell libraries, so BootTidal.hs throws errors.
ghci>
<no location info>: error: [GHC-87110]
Could not load module ‘Sound.Tidal.Context’.
It is a member of the package ‘tidal-1.9.4-7HbCfOnytfZ7DKu5P4GAny’
which is unusable due to missing dependencies:
base-4.19.0.0-e537 bytestring-0.12.0.2-1ecd clock-0.8.4-IzY67dA0ddPLttdlEPXATC colour-2.3.6-3SpkqYzeyjWDO6CyEHHo6t containers-0.6.8-9a73 deepseq-1.5.0.0-5710 exceptions-0.10.7-69a4 hosc-0.20-FzBsswQZImCDvQewvfs3nQ mtl-2.3.1-aa9c network-3.1.4.0-99dMnff1TxD4fiyNdZWQxB parsec-3.1.17.0-bc79 primitive-0.9.0.0-C9Jtt1eLYhdKasMG7ckIJU random-1.2.1.1-HYHO9tjOSZH98HubQ0k4FN text-2.1-0f57 tidal-link-1.0.2-1vZiGPlunYg6swm3kGU3Lk transformers-0.6.1.0-3ba6
cleary gave me a tip for finding the boot file:
find ~ -iname "boottidal.hs"
I'm going to try this now, and report if it works.
Best
Iannis
Hi durandal,
PS: the error when using BootTidal.hs from the wrong path is actually:
GHCi, version 9.8.1: https://www.haskell.org/ghc/ :? for help
ghci>
<no location info>: error: [GHC-61948]
Could not find module ‘Sound.Tidal.Boot’.
Perhaps you meant
Sound.Tidal.Core
Sound.Tidal.Show
Sound.Tidal.ID
This is when trying to use BootTidal.hs from .config/emacs/local/straight/repos.
IZ
Both paths where BootTidal.hs was found did not work.
~.config/emacs/.local/straight/repos/Tidal/BootTidal.hs
~.local/share/aarch64-osx-ghc-9.8.1/tidal-1.9.4/BootTidal.hs
In both cases, ghci missis some dependencies.
I will reinstall tidal after removing both of the above directories, and try again.
Iannis Zannos
My bit of .emacs looks like:
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") '("marmalade" . "http://marmalade-repo.org/packages/") )
;;tidal initialisation
(package-initialize)
(setq load-path (cons "~/tidal/" load-path))
(setq tidal-boot-script-path "~/tidal/BootTidal.hs")
(require 'tidal)
(setq tidal-interpreter "/Users/name/.ghcup/bin/ghci")