Permalink
Browse files

Basic building of Haskell part for gradle

  • Loading branch information...
kotarak committed Feb 21, 2012
1 parent ed3884b commit a60568dc0a5aa44bf2393238f6236f7c5d6238e6
Showing with 19 additions and 0 deletions.
  1. +17 −0 build.gradle
  2. +1 −0 nrepl-client/src/main/haskell/VimClojure/Client.hs
  3. +1 −0 settings.gradle
View
@@ -76,6 +76,23 @@ project(':client') {
}
}
+project(':nrepl-client') {
+ task compileHaskell {
+ //inputs.dir project.file('src/main/haskell')
+ //outputs.dir project.file('build/main/classes')
+ } << {
+ project.file("build/main/classes").mkdirs()
+ project.exec {
+ commandLine "ghc", "-isrc/main/haskell",
+ "-outputdir", "build/main/classes",
+ "-o", "build/main/classes/nrepl-client",
+ "-XFlexibleInstances",
+ "--make",
+ "src/main/haskell/VimClojure/Main.hs"
+ }
+ }
+}
+
project(':vim') {
task vimZip(type: Zip) {
archiveName = "vimclojure-" + project.version + ".zip"
@@ -84,4 +84,5 @@ readResponse stream response = do
processMessage msg stream = do
hPutStr stream msg
+ hFlush stream
readResponse stream $ emptyResponse
View
@@ -1,5 +1,6 @@
rootProject.name = 'vimclojure'
include 'client'
+include 'nrepl-client'
include 'server'
include 'vim'
include 'gradle'

0 comments on commit a60568d

Please sign in to comment.