-
-
Save mmynsted/da7bc7a118ded64080d87208a0f5c798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo :: Rules UrlPairs | |
foo = preprocess $ do | |
xs <- loadUrlMap "redirectLinks.tsv" | |
case xs of | |
Left err -> do print err | |
pure ([] :: UrlPairs) | |
Right m -> pure m | |
bar :: Rules () | |
bar = do | |
xs <- foo | |
let f = arr fromFilePath | |
ys = fmap (Arrow.first f) xs | |
createRedirects ys |
MarcelineVQ
commented
Oct 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment