Commit afa0e54 1 parent 970b331 commit afa0e54 Copy full SHA for afa0e54
File tree 8 files changed +58
-0
lines changed
8 files changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ The format is based on [Keep a Changelog].
43
43
for [ Bazel Build] ( https://bazel.build/ ) ([ #171 ] ).
44
44
* [ ` cmake-format ` ] ( https://github.com/cheshirekow/cmake_format )
45
45
for [ CMake] ( https://cmake.org/ ) ([ #172 ] ).
46
+ * [ ` fourmolu ` ] ( https://github.com/fourmolu/fourmolu ) for haskell
46
47
* [ ` html-tidy ` ] ( https://www.html-tidy.org/ ) for HTML/XML ([ #173 ] ).
48
+ * [ ` ormolu ` ] ( https://github.com/tweag/ormolu ) for haskell.
47
49
* [ ` perltidy ` ] ( https://perltidy.sourceforge.net/ ) for
48
50
[ perl] ( https://www.perl.org/ ) ([ #175 ] ).
49
51
* [ ` rubocop ` ] ( https://github.com/rubocop/rubocop ) for [ ruby] ( https://www.ruby-lang.org/en/ ) ([ #176 ] ).
Original file line number Diff line number Diff line change 57
57
(dart-format . (" dart" " format" ))
58
58
(elm-format . (" elm-format" " --yes" " --stdin" ))
59
59
(fish-indent . (" fish_indent" ))
60
+ (fourmolu . (" fourmolu" ))
60
61
(gawk . (" gawk" " -f" " -" " --pretty-print=-" ))
61
62
(gofmt . (" gofmt" ))
62
63
(gofumpt . (" gofumpt" ))
88
89
(nixfmt . (" nixfmt" ))
89
90
(ocamlformat . (" ocamlformat" " -" " --name" filepath
90
91
" --enable-outside-detected-project" ))
92
+ (ormolu . (" ormolu" ))
91
93
(perltidy . (" perltidy" " --quiet" " --standard-error-output" ))
92
94
(phpcs . (" apheleia-phpcs" ))
93
95
(prettier
Original file line number Diff line number Diff line change
1
+ apt-get install -y haskell-platform
2
+ cabal update
3
+ cabal install fourmolu
4
+ cp " ${HOME} /.cabal/bin/fourmolu" /usr/local/bin
Original file line number Diff line number Diff line change
1
+ apt-get install -y haskell-platform
2
+ cabal update
3
+ cabal install ormolu
4
+ cp " ${HOME} /.cabal/bin/ormolu" /usr/local/bin
Original file line number Diff line number Diff line change
1
+ -- Foo performs foo and sometimes bar.
2
+
3
+ foo :: Thoroughness
4
+ -> Int -> Int
5
+ foo t x = if x > 20
6
+ then case t of
7
+ Thorough -> x + 50
8
+ Somewhat -> x + 20
9
+ NotAtAll -> 0
10
+ else 10 + 1
Original file line number Diff line number Diff line change
1
+ -- Foo performs foo and sometimes bar.
2
+
3
+ foo ::
4
+ Thoroughness ->
5
+ Int ->
6
+ Int
7
+ foo t x =
8
+ if x > 20
9
+ then case t of
10
+ Thorough -> x + 50
11
+ Somewhat -> x + 20
12
+ NotAtAll -> 0
13
+ else 10 + 1
Original file line number Diff line number Diff line change
1
+ -- Foo performs foo and sometimes bar.
2
+
3
+ foo :: Thoroughness
4
+ -> Int -> Int
5
+ foo t x = if x > 20
6
+ then case t of
7
+ Thorough -> x + 50
8
+ Somewhat -> x + 20
9
+ NotAtAll -> 0
10
+ else 10 + 1
Original file line number Diff line number Diff line change
1
+ -- Foo performs foo and sometimes bar.
2
+
3
+ foo ::
4
+ Thoroughness ->
5
+ Int ->
6
+ Int
7
+ foo t x =
8
+ if x > 20
9
+ then case t of
10
+ Thorough -> x + 50
11
+ Somewhat -> x + 20
12
+ NotAtAll -> 0
13
+ else 10 + 1
You can’t perform that action at this time.
0 commit comments