aboutsummaryrefslogtreecommitdiff
path: root/Utils.hs
diff options
context:
space:
mode:
authorMirek Kratochvil <miroslav.kratochvil@uni.lu>2023-10-16 19:08:27 +0200
committerMirek Kratochvil <miroslav.kratochvil@uni.lu>2023-10-16 19:08:27 +0200
commite2cec0c7a7d56058773f3534c202e1b85f57baff (patch)
treecfffdeb0b8214c455f5e84919dcc621460408d67 /Utils.hs
parent56dcda56193d0148af8868d81247010c0d0b8db3 (diff)
downloadreploy-e2cec0c7a7d56058773f3534c202e1b85f57baff.tar.gz
reploy-e2cec0c7a7d56058773f3534c202e1b85f57baff.tar.bz2
reformat using new hindent (cuteness +63)
Diffstat (limited to 'Utils.hs')
-rw-r--r--Utils.hs12
1 files changed, 8 insertions, 4 deletions
diff --git a/Utils.hs b/Utils.hs
index 9c901cc..fa1bc09 100644
--- a/Utils.hs
+++ b/Utils.hs
@@ -75,8 +75,12 @@ addHeadingLinks cls = Text.Pandoc.Walk.walk go
Header
lvl
attr
- (inlines ++
- [Link ("", [cls], []) [Str "#"] ("#" <> id, "Link to this section")])
+ (inlines
+ ++ [ Link
+ ("", [cls], [])
+ [Str "#"]
+ ("#" <> id, "Link to this section")
+ ])
go x = x
-- | @"https://example.com" `hasUriScheme` "https"@
@@ -132,8 +136,8 @@ sourcePaths fp process = do
| null ds = False
| last ds `elem` notSource = True
| otherwise = False
- io (getRecursiveContents (pure . ignoreDir . splitDirectories) fp) >>=
- foldMapM process
+ io (getRecursiveContents (pure . ignoreDir . splitDirectories) fp)
+ >>= foldMapM process
-- | Given a path to a file, try to make the path writable by making all
-- directories on the path. (Interned from Hakyll.)