{"provider_name":"Hatena Blog","width":"100%","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20070616%2F1181954595\" title=\"Foreign - \u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5","published":"2007-06-16 09:43:15","blog_url":"https://blog.emattsan.org/","title":"Foreign","categories":["Haskell"],"description":"\u4fbf\u5229\u306a\u3093\u3067\u3059\u304c\u3001\u306a\u3093\u3068\u306a\u304f\u30ba\u30eb\u3092\u3057\u3066\u3044\u308b\u6c17\u5206\u306b\u306a\u308a\u307e\u3059\u3002Haskell\u3063\u307d\u304f\u306a\u3044\u3068\u3002 import Foreign.Marshal.Array import Foreign.Ptr import Foreign.Storable import Data.Word main = do a <- mallocArray 10 :: IO (Ptr Word32) peekElemOff a 0 >>= print -- index 0 \u306e\u5185\u5bb9\u306f0 pokeElemOff a 0 10 -- index 0 \u306b10\u3092\u8a2d\u5b9a peekElemOff a 0 >>= print -- index 0 \u306e\u5185\u2026","version":"1.0","author_url":"https://blog.hatena.ne.jp/E_Mattsan/","type":"rich","height":"190","provider_url":"https://hatena.blog","url":"https://blog.emattsan.org/entry/20070616/1181954595","author_name":"E_Mattsan"}