Skip to content

Commit

Permalink
Fix patterns snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Aug 8, 2012
1 parent 627f39c commit 746653f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/snippets/patterns.hs
@@ -1,3 +1,9 @@
data Math = Math
{ root :: Double -> Double
, square :: Double -> Double
, cube :: Double -> Double
}

race (winner,runners) = print (winner,runners)

first (x:xs) = x
Expand Down

0 comments on commit 746653f

Please sign in to comment.