Guilherme Grochau Azzi

Results 21 comments of Guilherme Grochau Azzi

## Proposal for whitespace Surround binary operators with a single space on either side. Use your better judgement for the insertion of spaces around arithmetic operators but always be consistent...

### Suggestion for Export Lists Format export lists as follows: ```haskell module Data.Set ( -- * The @Set@ type Set , empty , singleton -- * Querying , member )...

### Proposal for Data Declarations If the data type definition is broken into multiple lines, align the constructors deriving clause. Example: ```haskell data Status = Pending | Ok | Error...

### Proposal for Pragmas Put pragmas immediately following the function they apply to. Example: ```haskell id :: a -> a id x = x {-# INLINE id #-} ``` Language...

## Proposal for Lists and List Comprehensions If a list is broken into multiple lines, the first line break comes _before_ the list, and its elements are aligned as follows....

### Proposal for Hanging Lambdas You may or may not indent the code following a "hanging" lambda. Use your judgement. Some examples: ```haskell bar :: IO () bar = forM_...

### Proposal for If-then-else clauses Generally, guards and pattern matches should be preferred over if-then-else clauses, where possible. Short cases should usually be put on a single line (when line...

### Proposal for case expressions The cases should be indented 2 spaces further that the line where `case ... of` appears. _Don't_ align the arrows ```haskell foobar = case something...

### Proposal for Imports Imports should be grouped in the following order: 1. external library imports (from standard or third party libraries) 2. imports from the same project Put a...

Relevant links: * [Haskell Wiki: Parallelism](https://wiki.haskell.org/Parallelism) * "Real World Haskell" book, [chapter on concurrency and parallelism](http://book.realworldhaskell.org/read/concurrent-and-multicore-programming.html) (only 2nd half is relevant) * [Parallel evaluation strategies](https://hackage.haskell.org/package/parallel-3.2.1.0/docs/Control-Parallel-Strategies.html) library