Hello everyone first time poster here.
I am going through the purescript by example book and one of the proposed solution to this exercise raised the question about
let (with out in) when do I use one or the other?
Why this example was not written with
recurseFiles :: FilePath -> Aff (Array FilePath) recurseFiles file = do contents <- readTextFile UTF8 file case contents of "" -> pure [ file ] c -> do let dir = Path.dirname file files = split (Pattern "\n") contents filesFromRoot = map (\f -> Path.concat [ dir, f ]) files arrarr <- parTraverse recurseFiles filesFromRoot pure $ file : concat arrarr
Thanks for taking your time to answer this silly question