Skip to content

Instantly share code, notes, and snippets.

@suzuki-hoge
Last active July 31, 2016 11:22
Show Gist options
  • Save suzuki-hoge/d4feb1ccebb905a1df57e765f25c9414 to your computer and use it in GitHub Desktop.
Save suzuki-hoge/d4feb1ccebb905a1df57e765f25c9414 to your computer and use it in GitHub Desktop.
format

Haskell

Lines

write someday...

  • 2 lines between functions
  • 2 lines between top area lines
  • No lines between imports

Spaces

write someday...

  • 1 space after {
  • 1 space before }
  • No spaces after (
  • No spaces before )

Line Break

write someday...

  • , puts Beginning Of Line
  • Line Break after module (
  • Line Break before more than two data deriving
  • Line Break after where
  • Line Break after last import

Indent

write someday...

  • use Space

Import

write someday...

  • First is Standard Modules
  • Then, Installed Modules
  • Then, Own Modules

Markdown

Lines

+ `No` Blank Lines on `Top` line + `1` Blank Line before `

~

` line + `No` Blank Lines after `

~

` line + `No` Blank Lines before `Code Block`

Examples

# Top Line

## Sub Line
lorem ipsum

### Sub-Sub Line
lorem ipsum

## Sub Line
lorem ipsum

# Next H1

## Sub Line
lorem ipsum
```Markdown
``

Table

+ `No` vertical lines of the both ends + `Not` align the vertical bars

Examples

character | description
:-- | :--
&& | and
== | equars

Case

+ use `UpperCamelCase` at syntax highlight language

Examples

```Markdown
# Top Line
``

```JavaScript
# Top Line
``

```Java
# Top Line
``

Python

Lines

write someday...

  • 2 lines between functions
  • No lines between imports

Indent

write someday...

  • use Tab

Import

write someday...

  • First is Standard Modules
  • Then, Installed Modules
  • Then, Own Modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment