packages feed

CheatSheet 1.3 → 1.4

raw patch · 3 files changed

+15/−6 lines, 3 files

Files

CheatSheet.cabal view
@@ -1,7 +1,7 @@ Name:           CheatSheet License:        BSD3 License-File:   LICENSE-Version:        1.3+Version:        1.4 Author:         Justin Bailey Homepage:       http://blog.codeslower.com/2008/10/The-Haskell-Cheatsheet Maintainer:     jgbailey _ codeslower _ com
CheatSheet.lhs view
@@ -128,12 +128,21 @@  complains, indent more.    \sshd{Braces and semi-colons}-  Semi-colons terminate an expression, and braces represent scope:+  Semi-colons terminate an expression, and braces represent+  scope. They can be used after several keywords: @where@, @let@, @do@+  and @of@. They cannot be used when defining a function body. For +  example, the below will not compile.  <-<    square x = { x * x; }+<    square2 x = { x * x; } < +  However, this will work fine:                    ++>+> square2 x = result+>     where { result = x * x; }+   \sshd{Function Definition}   Indent the body at least one space from the function name: @@ -194,7 +203,7 @@   and matches any value.    \sshd{Nesting \& Capture}-  Nested matching and argument capture are also allowed. Recalling the definition of @Maybe@ above,+  Nested matching and argument capture are also allowed. Referring to the definition of @Maybe@ below,   we can determine if any choice was given using a nested match:  > anyChoice1 ch =@@ -1357,12 +1366,12 @@  \hd{Contributors} -  My thanks to those who contributed patches and useful suggestions:+  My thanks to those who contributed patches and useful suggestions: Cale Gibbard,   Stephen Hicks, Kurt Hutchinson, Adrian Neumann, Markus Roberts, Holger Siegel, and Jeff Zaroyko.  \hd{Version} -  This is version 1.3. The source can +  This is version 1.4. The source can    be found at GitHub\footnote{\url{git://github.com/m4dc4p/cheatsheet.git}}. The latest   released version of the PDF can be downloaded from   Hackage\footnote{\url{http://hackage.haskell.org/cgi-bin/hackage-scripts/package/CheatSheet}}. Visit
CheatSheet.pdf view

binary file changed (159710 → 158511 bytes)