shabat shabat - 6 months ago 12
Linux Question

Yesod init command not found

got installed haskell platform and then run

cabal install yesod-bin


but when I type

yesod init


i get "bash: yesod: command not found..."
how do I fix it ?

Answer

Make sure you have

# add local cabal binaries to command path
export PATH=~/.cabal/bin:${PATH}

in your ~/.bashrc file. Alternatively, use stack instead of cabal for this kind of stuff.