Copyright | (c) 2009 Holger Siegel 2012 - 2014 Björn Peemöller |
---|---|
License | BSD-3-clause |
Maintainer | bjp@informatik.uni-kiel.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Since version 0.7 of the language report, Curry accepts literate source programs. In a literate source, all program lines must begin with a greater sign in the first column. All other lines are assumed to be documentation. In order to avoid some common errors with literate programs, Curry requires at least one program line to be present in the file. In addition, every block of program code must be preceded by a blank line and followed by a blank line.
It is also possible to use "begin{code}" and "end{code}" to mark code segments. Both styles can be used in mixed fashion.