-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch RDD bindings to using inline-java under the hood.
Using inline-java slows down the compilation of sparkle, but is safer because we can thus get the benefit of *both* type checkers (Java and Haskell). In fact the extra safety isn't just theoretical: this patch also includes a fix to the binding for `treeAggregate`, which was supplying arguments in the wrong order. This is preliminary work ahead of implementing #57, which we can do serenely from the moment that the type checkers have our back. This patch only switches over RDD for now. The rest can come later.
- Loading branch information
Showing
4 changed files
with
53 additions
and
63 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
import Distribution.Simple | ||
import System.Process | ||
import System.Exit | ||
import Language.Java.Inline.Cabal | ||
|
||
main = defaultMainWithHooks simpleUserHooks { postBuild = buildJavaSource } | ||
|
||
buildJavaSource _ _ _ _ = do | ||
executeShellCommand "gradle build" | ||
return () | ||
|
||
executeShellCommand cmd = system cmd >>= check | ||
where | ||
check ExitSuccess = return () | ||
check (ExitFailure n) = | ||
error $ "Command " ++ cmd ++ " exited with failure code " ++ show n | ||
main = defaultMainWithHooks (gradleHooks simpleUserHooks) |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ packages: | |
|
||
extra-deps: | ||
- jni-0.3.0 | ||
- jvm-0.2.0 | ||
- jvm-0.2.1 | ||
- jvm-streaming-0.2 | ||
- inline-java-0.6.3 | ||
|
||
|