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

Safe HaskellNone
LanguageHaskell2010

Path.Extensions

Contents

Synopsis

Raw Extension Strings

cExtension :: String Source #

The string ".c".

cppExtension :: String Source #

The string ".cpp".

cssExtension :: String Source #

The string ".css".

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".

pdfExtension :: String Source #

The string ".pdf".

phpExtension :: String Source #

The string ".php".

pngExtension :: String Source #

The string ".png".

pyExtension :: String Source #

The string ".py".

svgExtension :: String Source #

The string ".svg"

xmlExtension :: String Source #

The string ".xml".

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.

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.

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.

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

Add a ".svg" 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.

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.

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.

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.

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

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

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

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