Haskell Tutorial
CSCI 312 Principles of Programming Languages
Haskell Tutorial
Qingsen Wang
qwang06@email.wm.edu
April 7, 2017
Outline
1.Haskell Quick Start
2.Knight Placement Problem
The figure is from
Haskell ¨C How to play with your code
GHCI
> ghci
Prelude> :l test
Prelude> :r
Prelude> :t main
GHC
> ghc ¨Co test test.hs
RUNHASKELL
> runhaskell test.hs
Haskell ¨C Comments
-- some comments
{Comments with multiple lines
-}
Haskell ¨C Basic Types
? Int
? Integer
can be unlimited
? Float
? Double
? Bool
? Char
True or False
let c = 'a'
A string is a list of chars
The first letter is capitalized!
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- csce 314 programming languages texas a m university
- programming in haskell
- haskell tutorial
- hvx disciplined convex programming and symbolic subdi
- a general introduction to functional programming using haskell
- 1 the number systems in haskell 98
- ieee visweek tutorial 2008 lexical syntax haskell
- data types computer science
- richard a eisenberg simon peyton jones
- hapy haskell for python
Related searches
- free excel tutorial download pdf
- printable excel tutorial in pdf
- microsoft excel tutorial pdf download
- ms excel 2013 tutorial pdf
- free basic excel tutorial pdf
- haskell convert int to integer
- haskell integer to string
- haskell float to int
- haskell char to int
- haskell convert string to int
- haskell frominteger
- haskell round float