Skip to content

Commit 0ded9fc

Browse files
brandonchinn178ysangkok
authored andcommitted
Reformat
1 parent cbca2d6 commit 0ded9fc

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

src/Distribution/Server/Features/UserNotify.hs

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,8 @@ userNotifyFeature ServerEnv{serverBaseURI, serverCron}
818818
describeRevision users earlier now pkg
819819
| pkgNumRevisions pkg <= 1 =
820820
EmailContentParagraph $
821-
"Package upload, " <> renderPkgLink (pkgInfoId pkg) <> ", by " <>
822-
formatTimeUser users (pkgLatestUploadTime pkg) (pkgLatestUploadUser pkg)
821+
"Package upload, " <> renderPkgLink (pkgInfoId pkg) <> ", by " <>
822+
formatTimeUser users (pkgLatestUploadTime pkg) (pkgLatestUploadUser pkg)
823823
| otherwise =
824824
EmailContentParagraph ("Package metadata revision(s), " <> renderPkgLink (pkgInfoId pkg) <> ":")
825825
<> EmailContentList (map (uncurry (formatTimeUser users) . snd) recentRevs)
@@ -875,25 +875,25 @@ userNotifyFeature ServerEnv{serverBaseURI, serverCron}
875875
depVersion = emailContentDisplay (packageVersion dep)
876876
in
877877
foldMap EmailContentParagraph
878-
[ "The dependency " <> renderPkgLink dep <> " has been uploaded or revised."
879-
, case notifyDependencyTriggerBounds of
880-
Always ->
881-
"You have requested to be notified for each upload or revision \
882-
\of a dependency."
883-
_ ->
884-
"You have requested to be notified when a dependency isn't \
885-
\accepted by any of your maintained packages."
886-
, case notifyDependencyTriggerBounds of
887-
Always ->
888-
"These are your packages that depend on " <> depName <> ":"
889-
BoundsOutOfRange ->
890-
"These are your packages that require " <> depName
891-
<> " but don't accept " <> depVersion <> ":"
892-
NewIncompatibility ->
893-
"The following packages require " <> depName
894-
<> " but don't accept " <> depVersion
895-
<> " (they do accept the second-highest version):"
896-
]
878+
[ "The dependency " <> renderPkgLink dep <> " has been uploaded or revised."
879+
, case notifyDependencyTriggerBounds of
880+
Always ->
881+
"You have requested to be notified for each upload or revision \
882+
\of a dependency."
883+
_ ->
884+
"You have requested to be notified when a dependency isn't \
885+
\accepted by any of your maintained packages."
886+
, case notifyDependencyTriggerBounds of
887+
Always ->
888+
"These are your packages that depend on " <> depName <> ":"
889+
BoundsOutOfRange ->
890+
"These are your packages that require " <> depName
891+
<> " but don't accept " <> depVersion <> ":"
892+
NewIncompatibility ->
893+
"The following packages require " <> depName
894+
<> " but don't accept " <> depVersion
895+
<> " (they do accept the second-highest version):"
896+
]
897897
<> EmailContentList (map renderPkgLink revDeps)
898898

899899
sendNotifyEmailAndDelay :: Users.Users -> (UserId, (T.Text, EmailContent)) -> IO ()
@@ -919,13 +919,13 @@ userNotifyFeature ServerEnv{serverBaseURI, serverCron}
919919
where
920920
updatePreferencesText =
921921
EmailContentParagraph $
922-
"You can adjust your notification preferences at" <> EmailContentSoftBreak
923-
<> emailContentUrl
924-
serverBaseURI
925-
{ uriPath =
926-
concatMap ("/" <>)
927-
[ "user"
928-
, display $ Users.userIdToName users uid
929-
, "notify"
930-
]
931-
}
922+
"You can adjust your notification preferences at" <> EmailContentSoftBreak
923+
<> emailContentUrl
924+
serverBaseURI
925+
{ uriPath =
926+
concatMap ("/" <>)
927+
[ "user"
928+
, display $ Users.userIdToName users uid
929+
, "notify"
930+
]
931+
}

0 commit comments

Comments
 (0)