*   Attoparsec - 高速パーサコンビネータ*   Gitit - VCSバックエンドWiki*   Gtk2hs - Haskellから使えるGtkラッパ*   Hakyll - 静的Webサイト生成*   House - Has...
*   Bluespec: SystemVerilogとSystemCのツール実装に使ってる*   Bump Technologies: モバイル向け連絡先交換のサーバサイド*   Microsoft Research: GHC(Haskell...
http://www.ohmsha.co.jp/kaihatsu/archive/2012/03/21160230.html"Learn You a Haskell for Great Good!: A Beginners Guide"の翻訳書...
Gloss hides the pain of drawing simple vector graphicsbehind a nice data type and a few display functions.Gloss uses OpenG...
$ sudo apt-get install haskell-platformhttp://hackage.haskell.org/platform/linux.htmlhttp://wiki.haskell.jp/Workshop/Start...
$ cabal update$ cabal install gloss$ cabal install gloss-examples
$ sudo apt-get install ghc-mod$ cabal install ghc-mod
$ ghciGHCi, version 7.4.1: http://www.haskell.org/ghc/ :? for helpLoading package ghc-prim ... linking ... done.Loading pa...
$ cat hellogloss.hsimport Graphics.Glossmain :: IO ()main = display (InWindow "Hoge" (200, 200) (10, 10))     white (Circl...
$ cat hellogloss.hsimport Graphics.Glossmain :: IO ()main = display (InWindow "Hoge" (200, 200) (10, 10))    white (Circle...
import Graphics.Glosshttp://hackage.haskell.org/packages/archive/gloss/latest/doc/html/Graphics-Gloss.html
main :: IO ()
main = display (InWindow "Hoge" (200, 200) (10, 10))    white (Circle 80)
Prelude Graphics.Gloss> :t displaydisplay :: Display -> Color -> Picture -> IO ()
(InWindow "Hoge" (200, 200) (10, 10))
Prelude Graphics.Gloss> :t whitewhite :: Color
http://cdsmith.wordpress.com/category/haskell-for-kids/
ミラクルはすける勉強会#0
ミラクルはすける勉強会#0
ミラクルはすける勉強会#0
ミラクルはすける勉強会#0
ミラクルはすける勉強会#0
ミラクルはすける勉強会#0
ミラクルはすける勉強会#0
ミラクルはすける勉強会#0
Upcoming SlideShare
Loading in...5
×

ミラクルはすける勉強会#0

2,643

Published on

Published in: Technology, Education

ミラクルはすける勉強会#0

  1. 1. * Attoparsec - 高速パーサコンビネータ* Gitit - VCSバックエンドWiki* Gtk2hs - Haskellから使えるGtkラッパ* Hakyll - 静的Webサイト生成* House - Haskell製OS* Mighttpd - nginxぐらい速いWebサーバ* Monadius - グラディウスっぽいゲーム* Pandoc - ドキュメントフォーマット変換* Yesod - RailsっぽいWebフレームワークその他↓にたくさん登録されてますhttp://hackage.haskell.org/packages/archive/pkg-list.html
  2. 2. * Bluespec: SystemVerilogとSystemCのツール実装に使ってる* Bump Technologies: モバイル向け連絡先交換のサーバサイド* Microsoft Research: GHC(Haskellコンパイラ)の研究開発* Qualcomm: LuaのBREWバインディングジェネレータ* Standard Chartered Bank: デリバティブリスク分析* Tsuru Capital: 株式トレーディングその他:http://www.haskell.org/haskellwiki/Haskell_in_industry
  3. 3. http://www.ohmsha.co.jp/kaihatsu/archive/2012/03/21160230.html"Learn You a Haskell for Great Good!: A Beginners Guide"の翻訳書。2012年5月新刊予定。
  4. 4. Gloss hides the pain of drawing simple vector graphicsbehind a nice data type and a few display functions.Gloss uses OpenGL under the hood, but you wont needto worry about any of that.Get something cool on the screen in under 10 minutes.
  5. 5. $ sudo apt-get install haskell-platformhttp://hackage.haskell.org/platform/linux.htmlhttp://wiki.haskell.jp/Workshop/StartHaskell/0
  6. 6. $ cabal update$ cabal install gloss$ cabal install gloss-examples
  7. 7. $ sudo apt-get install ghc-mod$ cabal install ghc-mod
  8. 8. $ ghciGHCi, version 7.4.1: http://www.haskell.org/ghc/ :? for helpLoading package ghc-prim ... linking ... done.Loading package integer-gmp ... linking ... done.Loading package base ... linking ... done.Prelude> import Graphics.GlossPrelude Graphics.Gloss> display (InWindow "Hoge" (200, 200) (10, 10)) white (Circle 80)
  9. 9. $ cat hellogloss.hsimport Graphics.Glossmain :: IO ()main = display (InWindow "Hoge" (200, 200) (10, 10)) white (Circle 80)$ ghc hellogloss.hs[1 of 1] Compiling Main ( hellogloss.hs, hellogloss.o )Linking hellogloss ...$ ./hellogloss
  10. 10. $ cat hellogloss.hsimport Graphics.Glossmain :: IO ()main = display (InWindow "Hoge" (200, 200) (10, 10)) white (Circle 80)
  11. 11. import Graphics.Glosshttp://hackage.haskell.org/packages/archive/gloss/latest/doc/html/Graphics-Gloss.html
  12. 12. main :: IO ()
  13. 13. main = display (InWindow "Hoge" (200, 200) (10, 10)) white (Circle 80)
  14. 14. Prelude Graphics.Gloss> :t displaydisplay :: Display -> Color -> Picture -> IO ()
  15. 15. (InWindow "Hoge" (200, 200) (10, 10))
  16. 16. Prelude Graphics.Gloss> :t whitewhite :: Color
  17. 17. http://cdsmith.wordpress.com/category/haskell-for-kids/
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×