forked from idris-lang/Idris-dev
-
Notifications
You must be signed in to change notification settings - Fork 3
The Zen of Idris
Jeremy W. Sherman edited this page Aug 10, 2015
·
9 revisions
Guidelines for writing programs in Idris.
- Written not assuming Laziness
In general, names should be in camelCase. Different kinds of names use slightly different styles, though:
- Type and data constructors:
TitleCamelCase
likePair
andMkPair
. - Functions:
lowerCamelCase
likeisHexDigit
.- Exception: Private or special functions may be in snake_case, like
maybe_bind
,believe_me
andassert_total
.
- Exception: Private or special functions may be in snake_case, like
- Effects:
UPPER_CASE
likeSTDIO
.
- Metavariables: End in
snake_case
like?myAppend_rhs
Binary Packages
Tool Support
Community
- Libraries, available elsewhere
- Idris Developer Meetings
- The Zen of Idris
Development