Slide 37
Slide 37 text
Marshalling records
type Point = (Float, Float)
newtype Vector = Vector (Float, Float)
data Particle = Particle
{ mass :: Float
, loc :: Point
, vel :: Vector
, acc :: Vector
}
25
Tuesday, 9 September 14
* A common problem is exchanging data between Haskell and Objective-C.