Skip to content

Instantly share code, notes, and snippets.

@ryanpcmcquen
Last active February 17, 2019 19:39
Show Gist options
  • Save ryanpcmcquen/e94d4eddd0d4807156a2f693c86bc6dd to your computer and use it in GitHub Desktop.
Save ryanpcmcquen/e94d4eddd0d4807156a2f693c86bc6dd to your computer and use it in GitHub Desktop.
Super Haskell setup for Cloud9
 ,-----.,--.                  ,--. ,---.   ,--.,------.  ,------.
'  .--./|  | ,---. ,--.,--. ,-|  || o   \  |  ||  .-.  \ |  .---'
|  |    |  || .-. ||  ||  |' .-. |`..'  |  |  ||  |  \  :|  `--, 
'  '--'\|  |' '-' ''  ''  '\ `-' | .'  /   |  ||  '--'  /|  `---.
 `-----'`--' `---'  `----'  `---'  `--'    `--'`-------' `------'
----------------------------------------------------------------- 

Setting up haskell-vim-now on a Cloud9 workspace:

  1. Start with a Blank workspace.
  2. Increase resources (use at least 7GB for disk and 2GB for ram, but more is better).
  3. Edit styles.css to use a powerline font:
@import url(https://cdn.rawgit.com/wernight/powerline-web-fonts/f3821a36beeba53e6e937319d4ee636ef30a352c/PowerlineFonts.css);
  1. Update apt:
sudo apt-get update
  1. Install the Haskell stack:
curl -sSL https://get.haskellstack.org/ | sh
  1. Install haskell-vim-now:
curl -L https://git.io/haskell-vim-now > /tmp/haskell-vim-now.sh
bash /tmp/haskell-vim-now.sh
  1. Enjoy!

Optional

Switch to a newer version of node with nvm:

nvm install 6.9.2
nvm alias default 6.9.2

Uninstall any older versions:

nvm ls
nvm uninstall 4.6.1
#!/bin/sh
#################################################################################
## READ THIS FIRST: ##
## https://community.c9.io/t/set-up-haskell-vim-now-on-a-c9-workspace/12023 ##
## ##
## Most importantly, you should resize your workspace. ##
## And if you like being cool, update your font as well. ##
#################################################################################
##
## You can also run:
## wget -N https://gist.githubusercontent.com/ryanpcmcquen/e94d4eddd0d4807156a2f693c86bc6dd/raw/cloud9_super_haskell.sh -P /tmp/
## bash /tmp/cloud9_super_haskell.sh
## You have to update or it will not work!
sudo apt-get update
## Install the Haskell stack:
curl -sSL https://get.haskellstack.org/ | sh
## Install haskell-vim-now:
curl -L https://git.io/haskell-vim-now > /tmp/haskell-vim-now.sh
bash /tmp/haskell-vim-now.sh
@karakfa
Copy link

karakfa commented Jul 8, 2018

does this work on amazon cloud 9 environment?

@KalikaKay
Copy link

@karakfa

Wow, almost a month ago.

The Amazon Cloud 9 environment may include additional fees when one opts to increase the storage amount.

Whether it's installed manually or via the stack, it does seem to require you to adjust to at least 7 GB in order to install the system in the Cloud9 environments (this goes for .io and AWS).

This is speaking from experience installing Haskell on Cloud9.io and my finagling on AWS Cloud 9.

FWIW - the same increase is required for Hugo on Cloud9.io.

Hope this helps?

I'm still looking at how to get a smaller EC2 instance going. Amazon AWS Cloud9 free tier starts with 8GB of space, the bulk of that space is in the default installation - leaving one with approximately 2GB left for installations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment