Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 834 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 834 Bytes

Haskell

Sample

  • Avoid partial functions (head, read, etc).
  • Compile code with -Wall -Werror.
  • Break long expressions before operators or keywords.
  • Break long type signatures between arguments.
  • Use a blank line between pragma and module statements.
  • Order imports in three sections, separating each by a blank line: standard libraries, third-party libraries, application modules. Within each section, alphabetize the imports and place qualified imports last.
  • Order pragma statements alphabetically.
  • Use comma-first style exports, records, and lists.
  • Use four-space indentation except the where keyword which is indented two spaces. Example.
  • Use only one pragma statement per line.