summaryrefslogtreecommitdiff
path: root/old/testmain.hs
blob: 3f340c2bbafd9937f01bfb5eb2e93ca25e6c7c13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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