Skip to content

Commit

Permalink
Improve getPagePath (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kove W. Ochre-Salter committed Nov 20, 2018
1 parent c9f8027 commit a8e62c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ getPagePath page = do
homeDir <- getHomeDirectory
let pageDir = homeDir </> tldrDirName </> "tldr" </> "pages"
paths = map (\x -> pageDir </> x </> page <.> "md") checkDirs
foldr (<|>) Nothing <$> mapM pageExists paths
foldr1 (<|>) <$> mapM pageExists paths

main :: IO ()
main = do
Expand Down

0 comments on commit a8e62c8

Please sign in to comment.