# Issue concerning stack install of tidalcycles

**URL:** <https://forum.toplap.org/t/issue-concerning-stack-install-of-tidalcycles/479>\
**Category:** TidalCycles\
**Created:** [3 May 2019 03:24 UTC](https://forum.toplap.org/t/issue-concerning-stack-install-of-tidalcycles/479 "2019-05-03T03:24:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dsm0](https://forum.toplap.org/user_avatar/forum.toplap.org/dsm0/32/405_2.png) [@Dsm0](https://forum.toplap.org/u/Dsm0)\
**Post date:** [3 May 2019 03:24 UTC](https://forum.toplap.org/t/issue-concerning-stack-install-of-tidalcycles/479/1 "2019-05-03T03:24:51Z")

</div>

I installed ghc and cabal using stack. I also installed tidal with stack.

When I’m running ghci inside the containing folder of the ghci boot script, and I try to import `Sound.Tidal.Context`, it works fine.  
However, when I set the ghci path in the tidalcycles atom plugin to that same ghci script, I can’t import  
`Sound.Tidal.Context`.  
Is it something to do with how the path for modules are set in haskell? I’m sure it’s an easy fix, I just don’t know where to look.

Running manjaro i3

---

<div class="post-metadata">

**Author:** ![yaxu](https://forum.toplap.org/user_avatar/forum.toplap.org/yaxu/32/3_2.png) [@yaxu](https://forum.toplap.org/u/yaxu)\
**Post date:** [3 May 2019 08:27 UTC](https://forum.toplap.org/t/issue-concerning-stack-install-of-tidalcycles/479/2 "2019-05-03T08:27:54Z")

</div>

Sounds like you need to add something like this to the end of your `.bashrc` file:

```bash
export PATH="/path/to/where/your/ghci/is:$PATH"`

```

You’ll need to log out and log back in again for that to take effect.

Alternatively, changing the `ghci path` setting in the atom preferences for tidalcycles to `stack ghci` would likely do the job.

---

<div class="post-metadata">

**Author:** ![Dsm0](https://forum.toplap.org/user_avatar/forum.toplap.org/dsm0/32/405_2.png) [@Dsm0](https://forum.toplap.org/u/Dsm0)\
**Post date:** [3 May 2019 14:03 UTC](https://forum.toplap.org/t/issue-concerning-stack-install-of-tidalcycles/479/3 "2019-05-03T14:03:55Z")

</div>

I tried adding the path in `.bashrc`, and I still can’t import `Sound.Tidal.Context`.  
As for changing the ghci path, my current path is  
`/home/will/.stack/programs/x86_64-linux/ghc-tinfo6-8.6.4/bin/ghci`.  
This is the same `ghci` that can import `Sound.Tidal.Context` when run on its own from a terminal,  
but won’t import from inside Atom.

---

<div class="post-metadata">

**Author:** ![Dsm0](https://forum.toplap.org/user_avatar/forum.toplap.org/dsm0/32/405_2.png) [@Dsm0](https://forum.toplap.org/u/Dsm0)\
**Post date:** [3 May 2019 19:17 UTC](https://forum.toplap.org/t/issue-concerning-stack-install-of-tidalcycles/479/4 "2019-05-03T19:17:56Z")

</div>

Nevermind. I realized I had set up an alias for ghci, and it was the alias that was running, not the script.  
I made the alias execute instead, and now everything’s fine.
