{"description":"\u3055\u3042\u3002 \u6628\u65e5\u3067\u304d\u306a\u304b\u3063\u305f\u3001FFI\u306e\u30c6\u30b9\u30c8 C\u8a00\u8a9e\u95a2\u6570\u3092Haskell\u3067\u5229\u7528\u3059\u308b\u3002 \u9006\u306f\u8003\u3048\u307e\u305b\u3093\u3001Haskell\u3092\u6d3b\u304b\u305b\u306a\u3044\u6c17\u304c\u3059\u308b\u3002 \u30cd\u30c3\u30c8\u3067\u8abf\u3079\u3066\u307f\u308b\u3068\u3001sin\u95a2\u6570\u3092C\u304b\u3089\u5f15\u3063\u5f35\u3063\u3066\u304f\u308b\u3082\u306e\u304c\u3042\u3063\u305f\u306e\u3067\u305d\u308c\u3067\u3061\u3087\u3063\u3068\u7c21\u5358\u306a\u5b9f\u9a13\u3092\u3059\u308b\u3053\u3068\u306b {-# LANGUAGE ForeignFunctionInterface #-} module FFI where foreign import ccall \"math.h sin\" c_sin :: Double -> Double \u3053\u308c\u3092\u3001FFI.hs\u3068\u3057\u3066\u4fdd\u5b58\u3002 \u307e\u305a\u306fGHCi\u3067\u8a66\u3057\u3066\u307f\u307e\u3059 ghci FFI.hs -lm\u3068\u3057\u3066\u3084\u308b\u3068\u30ed\u30fc\u30c9\u5b8c\u4e86\u3002\u2026","provider_url":"https://hatena.blog","author_name":"wvogel00","provider_name":"Hatena Blog","categories":["Haskell"],"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwvogel00.hatenadiary.org%2Fentry%2F20110710%2F1310303341\" title=\"FFI - wvogel\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://wvogel00.hatenadiary.org/","version":"1.0","author_url":"https://blog.hatena.ne.jp/wvogel00/","blog_title":"wvogel\u65e5\u8a18","title":"FFI","width":"100%","type":"rich","url":"https://wvogel00.hatenadiary.org/entry/20110710/1310303341","image_url":null,"published":"2011-07-10 22:09:01"}