fork download
  1. doubleSquare (ax, ay) (bx, by) (cx, cy) = abs $ (bx - ax) * (cy - ay) - (cx - ax) * (by - ay)
  2. main = print $ doubleSquare (4,-4) (8,2) (3,8)
Success #stdin #stdout 0.01s 3592KB
stdin
Standard input is empty
stdout
54