Skip to content

Bazel build to produce a Java application calling through JNI into Haskell

Notifications You must be signed in to change notification settings

markdingram/java-jni-haskell

Repository files navigation

Bazel Java JNI Haskell

Bazel project showing Java calling Haskell via JNI.

bazel run //fibhs:main 10
bazel run //fibjava:main 10
...
fib(10) = 89

Notes

A few quirks made the Haskell stack quite sensitive to precise versions / configuration (Jul 23):

  • "The latest versions of attoparsec use an internal library, and when using the newest stackage snapshots, one needs to do extra configuration in the stack_snapshot rule." tweag/rules_haskell#1764
  • "fatal error: ghcplatform.h: No such file or directory" tweag/rules_haskell#1805
  • "The current version of Cabal has an issue causing the generated Paths_ files to miss the definition of splitFileName and minusFileName (See #1832)." tweag/rules_haskell#1871

About

Bazel build to produce a Java application calling through JNI into Haskell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published