Commits

Meikel Brandmeyer committed d3142e1

Basic building of Haskell part for gradle

Comments (0)

Files changed (3)

     }
 }
 
+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"

nrepl-client/src/main/haskell/VimClojure/Client.hs

 
 processMessage msg stream = do
     hPutStr stream msg
+    hFlush stream
     readResponse stream $ emptyResponse
 rootProject.name = 'vimclojure'
 include 'client'
+include 'nrepl-client'
 include 'server'
 include 'vim'
 include 'gradle'