Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix patterns snippet.

  • Loading branch information...
commit 746653fc4d39585d80d52324a88c1a909037dc95 1 parent 627f39c
@chrisdone chrisdone authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 docs/snippets/patterns.hs
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.