Skip to content

Commit ceccc24

Browse files
committed
stylish-haskell
1 parent e6f3e66 commit ceccc24

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.stylish-haskell.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
columns: 80
2+
newline: lf
3+
4+
steps:
5+
6+
- simple_align:
7+
cases: false
8+
top_level_patterns: false
9+
records: false
10+
11+
- imports:
12+
align: none
13+
list_align: after_alias
14+
long_list_align: inline
15+
empty_list_align: inherit
16+
list_padding: 4
17+
separate_lists: true
18+
19+
- tabs:
20+
spaces: 4
21+
22+
- trailing_whitespace: {}

unfork-demo/Demo.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module Demo where
22

3-
import Prelude (IO, String, putStr, show, (*>), (<>))
43
import Control.Concurrent (threadDelay)
54
import Control.Concurrent.Async (concurrently_)
65
import Data.Foldable (for_)
76
import Numeric.Natural (Natural)
7+
import Prelude (IO, String, putStr, show, (*>), (<>))
88

99
putStrLnSlow :: String -> IO ()
1010
putStrLnSlow = r

unfork/Unfork.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ module Unfork
151151
{- * Synchronous I/O -} unforkSyncIO_, unforkSyncIO,
152152
) where
153153

154-
import Prelude (IO, Maybe (..), Eq ((==)), pure)
154+
import Prelude (Eq ((==)), IO, Maybe (..), pure)
155155

156156
import Control.Applicative ((<|>))
157+
import Control.Concurrent.Async (concurrently)
157158
import Control.Exception.Safe (bracket)
158159
import Control.Monad (guard, join)
159160
import Control.Monad.STM (STM, atomically)
160-
import Control.Concurrent.Async (concurrently)
161161
import Data.Functor (($>), (<&>))
162162

163163
import qualified Control.Concurrent.MVar as MVar

0 commit comments

Comments
 (0)