Skip to content

Latest commit

 

History

History
 
 

haskell

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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.