Skip to content

Instantly share code, notes, and snippets.

@dbushenko
Created November 17, 2013 20:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbushenko/7518066 to your computer and use it in GitHub Desktop.
Save dbushenko/7518066 to your computer and use it in GitHub Desktop.
(global-ede-mode t)
(ede-enable-generic-projects)
(require 'ede/generic)
(defclass ede-haskell-project (ede-generic-project)
((buildfile :initform ".cabal"))
"Haskell project.")
(defmethod initialize-instance ((this ede-haskell-project) &rest fields)
(call-next-method)
(oset this :local-variables '((grep-command . "grep"))))
(defmethod ede-generic-setup-configuration ((proj ede-haskell-project) config)
"Setup a configuration for leiningen."
(oset config build-command "cabal build")
(oset config run-command "./dist/build/my/my"))
(ede-generic-new-autoloader "generic-haskell" "Haskell"
".cabal" 'ede-haskell-project)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment