After upgrading my OS to Sierra I was having an issue with homebrew. It failed to recognize the
cask command and was throwing an error:
brew cask install haskell-platform Error: Unknown command: cask
Brew wasn't able to find the correct path and was causing this issue.
brew update brew cleanup brew cask cleanup