Skip to content

Commit 2dbebed

Browse files
committed
fourmolu
1 parent a3366e3 commit 2dbebed

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

debug/src/SimpleClient.hs

+1-2
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,7 @@ runOn (sStorage, certStore) flags port hostname
381381
LC.pack
382382
( "GET "
383383
++ findURI flags
384-
++ ( if Http11 `elem` flags then " HTTP/1.1\r\nHost: " ++ hostname else " HTTP/1.0"
385-
)
384+
++ (if Http11 `elem` flags then " HTTP/1.1\r\nHost: " ++ hostname else " HTTP/1.0")
386385
++ userAgent
387386
++ "\r\n\r\n"
388387
)

tls/Network/TLS/Crypto.hs

+3-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ findFiniteFieldGroup params = lookup (pg params) table
115115
pg (DH.Params p g _) = (p, g)
116116

117117
table =
118-
[ (pg prms, grp) | grp <- availableFFGroups, let prms = fromJust $ dhParamsForGroup grp
118+
[ (pg prms, grp)
119+
| grp <- availableFFGroups
120+
, let prms = fromJust $ dhParamsForGroup grp
119121
]
120122

121123
findEllipticCurveGroup :: PubKeyEC -> Maybe Group

tls/Network/TLS/Handshake/Server/ClientHello.hs

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ processClientHello sparams ctx clientHello@(ClientHello legacyVersion cran compr
2828
eof <- ctxEOF ctx
2929
let renegotiation = established == Established && not eof
3030
when
31-
( renegotiation && not (supportedClientInitiatedRenegotiation $ ctxSupported ctx)
32-
)
31+
(renegotiation && not (supportedClientInitiatedRenegotiation $ ctxSupported ctx))
3332
$ throwCore
3433
$ Error_Protocol_Warning "renegotiation is not allowed" NoRenegotiation
3534
-- check if policy allow this new handshake to happens

tls/test/Arbitrary.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,13 @@ arbitraryPairParamsAt connectVersion = do
305305
-- versions for which we have compatible ciphers. Criteria about cipher
306306
-- ensure we can test version downgrade.
307307
let allowedVersions =
308-
[ v | v <- knownVersions, or
309-
[ x `elem` serverCiphers
310-
&& cipherAllowedForVersion v x
311-
| x <- clientCiphers
312-
]
308+
[ v
309+
| v <- knownVersions
310+
, or
311+
[ x `elem` serverCiphers
312+
&& cipherAllowedForVersion v x
313+
| x <- clientCiphers
314+
]
313315
]
314316
allowedVersionsFiltered = filter (<= connectVersion) allowedVersions
315317
-- Server or client is allowed to have versions > connectVersion, but not

0 commit comments

Comments
 (0)