Skip to content

Instantly share code, notes, and snippets.

Created May 5, 2013 21:55
Show Gist options
  • Save anonymous/5522343 to your computer and use it in GitHub Desktop.
Save anonymous/5522343 to your computer and use it in GitHub Desktop.
" This uses djinn for automatically generating Haskell code from type
" signatures. Move your cursor over the type sig and type :Djinn. See also the
" <http://www.augustsson.net/Darcs/Djinn/examples> examples page for more info
" on using Djinn.
command! -range Djinn
\ <line1>,<line2>!
\ sed 's/::/?/g'
\ | djinn <(cat)
\ | grep -v -- "-- loading file /dev/fd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment