Earlier quoted context omitted.
I made a more compact version closer to what I might write in a hurry. {-# LANGUAGE OverloadedStrings #-} module Main where import Prelude hiding (appendFile) import Data.Monoid (( )) import Network.Wreq import Control.Lens import Control.Concurrent.Async import Data.ByteString.Lazy (ByteString, appendFile) import Data.List main = do urls >= mapM_ (appendFile "output2.txt" . view responseBody) promptUserURLs :: IO [S…
Wow. Interesting. This is really cool, being able to learn like this :3 I must admit I have so many questions, like what the dot does, what fst and snd and >>= and OverloadedStrings and zip do... :) Oh, and what "snoc" means.
>>= is monadic bind... I won't try to explain it here. It's somewhat similiar to flatmap in Scala which has some easy explanations.
zip, I just remembered I explained already.