Last active
August 29, 2015 14:02
-
-
Save dpwiz/22fa082942d4112a0085 to your computer and use it in GitHub Desktop.
DIY Haskell IDE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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="-\}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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