The ghc-mod command and ghc-modi command are backend commands to enrich Haskell programming on editors including Emacs, Vim, and Sublime. ghc-mod and ghc-modi are based on the ghc-mod library which is a wrapper of GHC API and Cabal. The ghc-mod package on Hackage includes the ghc-mod command, the ghc-modi command, the ghc-mod library, and Emacs front-end (for historical reasons). The source reposi
著者 Graham Hutton 訳者 山本和彦 発行所 株式会社オーム社 ISBN-10: 4274067815 ISBN-13: 978-4274067815 2,800円(税抜き) n + k パターン n + k パターンは Haskell 2010 で仕様から削られ、GHC 7.x.y ではデフォルトで利用できません。n + k を利用するには、GHCi に -XNPlusKPatterns コマンドラインオプションを指定する必要があります。 % ghci -XNPlusKPatterns また、ファイルにこの拡張を書けば、コマンドラインオプションは不要です。40ページの pred を例にとると、以下のようになります。 {-# LANGUAGE NPlusKPatterns #-} pred :: Int -> Int pred 0 = 0 pred (n + 1) = n しか
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く