path-extensions-0.1.1.0: Enumeration of common filetype extensions for use with the path library.

CopyrightCopyright (C) 2020 Daniel Firth
MaintainerDaniel Firth <dan.firth@homotopic.tech
Safe HaskellNone
LanguageHaskell2010

Path.Extensions

Contents

Description

License : MIT Stability : provisional

Enumeration of file extensions for use with the Path library.

Synopsis

Raw Extension Strings

cExtension :: String Source #

The string ".c".

cppExtension :: String Source #

The string ".cpp".

cssExtension :: String Source #

The string ".css".

docxExtension :: String Source #

The string ".docx"

gifExtension :: String Source #

The string ".gif".

hsExtension :: String Source #

The string ".hs".

htmlExtension :: String Source #

The string ".html".

jpgExtension :: String Source #

The string ".jpg".

jsExtension :: String Source #

The string ".js".

mdExtension :: String Source #

The string ".md".

mp3Extension :: String Source #

The string ".mp3".

mp4Extension :: String Source #

The string ".mp4".

oExtension :: String Source #

The string ".o".

odtExtension :: String Source #

The string ".odt"

pdfExtension :: String Source #

The string ".pdf".

phpExtension :: String Source #

The string ".php".

pngExtension :: String Source #

The string ".png".

pyExtension :: String Source #

The string ".py".

rtfExtension :: String Source #

The string ".rtf".

shExtension :: String Source #

The string ".sh"

svgExtension :: String Source #

The string ".svg"

texExtension :: String Source #

The string ".tex"

txtExtension :: String Source #

The string ".txt"

xmlExtension :: String Source #

The string ".xml".

wikiExtension :: String Source #

The string ".wiki"

Add Extensions

addCExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".c" extension to the end of a File.

addCppExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".cpp" extension to the end of a File.

addCssExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".css" extension to the end of a File.

addDocxExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".docx" extension to the end of a File.

addGifExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".gif" extension to the end of a File.

addHsExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".hs" extension to the end of a File.

addHtmlExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".html" extension to the end of a File.

addJpgExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".jpg" extension to the end of a File.

addJsExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".js" extension to the end of a File.

addMdExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".md" extension to the end of a File.

addMp3Extension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".mp3" extension to the end of a File.

addMp4Extension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".mp4" extension to the end of a File.

addOExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".o" extension to the end of a File.

addOdtExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".odt" extension to the end of a File.

addPdfExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".pdf" extension to the end of a File.

addPhpExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".php" extension to the end of a File.

addPngExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".png" extension to the end of a File.

addPyExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".py" extension to the end of a File.

addRtfExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".rtf" extension to the end of a File.

addShExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".sh" extension to the end of a File.

addSvgExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".svg" extension to the end of a File.

addTexExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".tex" extension to the end of a File.

addTxtExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".txt" extension to the end of a File.

addXmlExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".xml" extension to the end of a File.

addWikiExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Add a ".wiki" extension to the end of a File.

Replace Extensions

withCExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".c" extension.

withCppExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".cpp" extension.

withCssExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".css" extension.

withDocxExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".docx" extension.

withGifExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".gif" extension.

withHsExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".hs" extension.

withHtmlExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".html" extension.

withJpgExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".jpg" extension.

withJsExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".js" extension.

withMdExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".md" extension.

withMp3Extension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".mp3" extension.

withMp4Extension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".mp4" extension.

withOExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".md" extension.

withOdtExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".odt" extension.

withPdfExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".pdf" extension.

withPhpExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".php" extension.

withPngExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".png" extension.

withPyExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".py" extension.

withRtfExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".rtf" extension.

withShExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".sh" extension.

withSvgExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".svg" extension.

withTexExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".tex" extension.

withTxtExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".txt" extension.

withXmlExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".xml" extension.

withWikiExtension :: MonadThrow m => Path b File -> m (Path b File) Source #

Replace the current extension of a File with a ".wiki" extension.