Skip to content

Instantly share code, notes, and snippets.

@23jura23
Last active May 12, 2021 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 23jura23/b9e40c6d7d7a98c6684edf4c879f820b to your computer and use it in GitHub Desktop.
Save 23jura23/b9e40c6d7d7a98c6684edf4c879f820b to your computer and use it in GitHub Desktop.
Cross dependency 1
module mine.File1 where
data MyFile = native mine.File2 where
pure native func :: MyFile -> Int
pure native create new :: () -> MyFile
main = print $ MyFile.func $ MyFile.create ()
package mine;
import mine.File3;
public class File2 {
public int func() {
File3 f = new File3();
return f.x;
}
}
module mine.File3 where
x = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment