add Haskell to Rust example

This commit is contained in:
Bill Murphy
2015-10-13 21:23:49 -04:00
parent 9b6be2f3fa
commit e8d35d56d7
5 changed files with 37 additions and 0 deletions

15
haskell-to-rust/Makefile Normal file
View File

@@ -0,0 +1,15 @@
ifeq ($(shell uname),Darwin)
EXT := dylib
else
EXT := so
endif
all: target/debug/libdouble_input.$(EXT)
ghc src/Main.hs target/debug/libdouble_input.$(EXT) -o main
target/debug/libdouble_input.$(EXT): src/lib.rs Cargo.toml
cargo build
clean:
rm -rf target
rm src/*.o src/*.hi