aboutsummaryrefslogtreecommitdiff
path: root/old/testmain.hs
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-01-09 19:55:12 +1100
committerJed Barber <jjbarber@y7mail.com>2017-01-09 19:55:12 +1100
commit50adbf5cdf9ef6924c47b6738dfd6139d19a0438 (patch)
tree31331251c0b40203ef4cda0b63b1c9d6ffa3b671 /old/testmain.hs
parentbc0a9edd47dad7a0bf7df26941a0d870c0c3d0ad (diff)
Moved old code to separate directory
Diffstat (limited to 'old/testmain.hs')
-rw-r--r--old/testmain.hs21
1 files changed, 21 insertions, 0 deletions
diff --git a/old/testmain.hs b/old/testmain.hs
new file mode 100644
index 0000000..3f340c2
--- /dev/null
+++ b/old/testmain.hs
@@ -0,0 +1,21 @@
+{-# LANGUAGE ForeignFunctionInterface #-}
+
+
+
+import qualified Storage as Store
+
+
+
+foreign import ccall adainit :: IO Int
+foreign import ccall adafinal :: IO Int
+
+
+
+main = do
+ adainit
+ s <- Store.createStorage 10 5
+ Store.pokePref s 1 2 3
+ r <- Store.peekPref s 1 2 3
+ putStrLn (show r)
+ adafinal
+