Skip to content

Instantly share code, notes, and snippets.

@dpwiz
Last active August 29, 2015 14:02
Show Gist options
  • Save dpwiz/22fa082942d4112a0085 to your computer and use it in GitHub Desktop.
Save dpwiz/22fa082942d4112a0085 to your computer and use it in GitHub Desktop.
DIY Haskell IDE
## include "/path/to/haskell.nanorc"
syntax "haskell" "\.hs$"
color green "(\||@|!|:|_|~|=|\\|;|\(|\)|,)"
color magenta "(True|False|==|/=|&&|\|\||<|>|<=|>=)"
color green "(->|<-|!)"
color red "[\n\t](as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix|infixl|infixr|instance|let|in|mdo|module|newtype|qualified|type|where)[ \n\t]"
color brightblue "'.'"
color brightblue "'\\[ntfr]'"
color brightblue ""[^\"]*""
## Comment highlighting
color brightblack "--.*"
color brightblack start="\{-" end="-\}"
# watch, recompile and re-run.
# start servers with serve.sh and do "./run_ci killall servername" for autoreload.
while true; do
clear && cabal build && $@
inotifywait -qq -e modify -r src/ *.cabal
done
while true; do
clear
$@
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment