2012-04-15から1日間の記事一覧
小ネタ。 Mainモジュールに次のようなコード (body, width, height) <- (,,) <$> newIORef "" <*> newIORef 300 <*> newIORef 0 (tlBody, tlWidth, tlHeight) <- (,,) <$> readIORef body <*> readIORef width <*> readIORef height があり、ふと「タプル版m…
小ネタ。 Mainモジュールに次のようなコード (body, width, height) <- (,,) <$> newIORef "" <*> newIORef 300 <*> newIORef 0 (tlBody, tlWidth, tlHeight) <- (,,) <$> readIORef body <*> readIORef width <*> readIORef height があり、ふと「タプル版m…