The Dabsong Conshirtoe

技術系の話を主にします。

haskell

haskellの勉強として、twitter apiライブラリを書いてみた

すごいH本をひと通り読んだので次は自分でコードを書いてみようと思い、Twitter APIのライブラリを適当な感じで書いてみました。Attsun1031/birdwatcher · GitHub 使い方 import Web.Birdwatcher main = do user <- users_show [("screen_name", "__Attsun__…

Haskell占い

あけましておめでとうございます。 去年はpython占いしたので今年はHaskell占いします。 -- ghciで実行(letとか省いてます) import System.Random choice :: [String] -> Int -> String choice choices seed = (choices !!) . fst $ randomR (0, length ch…