Skip to content

Instantly share code, notes, and snippets.

@redswallow
redswallow / hs.md
Created December 26, 2011 22:35 — forked from jackywyz/hs.md
Haskell练习

###haskell 基本类型,bool,list,tuple,int,Integer,Double,char ,string,function

  1. 编译运行
  • runhaskell hell.hs
  • ghc --make helloworld and then ./helloworld
  1. let/in 在函数的应用
root s = 
 let p = 2