-
-
Save 23jura23/b9e40c6d7d7a98c6684edf4c879f820b to your computer and use it in GitHub Desktop.
Cross dependency 1
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
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 () |
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
package mine; | |
import mine.File3; | |
public class File2 { | |
public int func() { | |
File3 f = new File3(); | |
return f.x; | |
} | |
} |
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
module mine.File3 where | |
x = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment