haskell binding

This commit is contained in:
Hideyuki Tanaka
2010-04-18 02:17:49 +09:00
parent fb96617377
commit f53c351fd2
14 changed files with 1299 additions and 0 deletions

16
haskell/test/Monad.hs Normal file
View File

@@ -0,0 +1,16 @@
import Control.Monad.Trans
import Data.MessagePack
main = do
sb <- packToString $ do
put [1,2,3::Int]
put (3.14 :: Double)
put "Hoge"
print sb
unpackFromString sb $ do
arr <- get
dbl <- get
str <- get
liftIO $ print (arr :: [Int], dbl :: Double, str :: String)