Hoogle Search
Within LTS Haskell 24.36 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
PromotedInfixT :: Type -> Name -> Type -> Typetemplate-haskell Language.Haskell.TH.Syntax T :+: T
-
template-haskell Language.Haskell.TH.Syntax '[]
-
template-haskell Language.Haskell.TH.Syntax 'T
-
template-haskell Language.Haskell.TH.Syntax '(), '(,), '(,,), etc.
PromotedUInfixT :: Type -> Name -> Type -> Typetemplate-haskell Language.Haskell.TH.Syntax T :+: T
See Language.Haskell.TH.Syntax#infix-
A library for FilePath manipulations, using Posix style paths on all platforms. Importing System.FilePath is usually better. Given the example FilePath: /directory/file.ext We can use the following functions to extract pieces.
- takeFileName gives "file.ext"
- takeDirectory gives "/directory"
- takeExtension gives ".ext"
- dropExtension gives "/directory/file"
- takeBaseName gives "file"
[replaceFileName path_to_main "Test" <.> ext | ext <- ["hs","lhs"] ]
Example 2: Download a file from url and save it to disk:do let file = makeValid url System.Directory.createDirectoryIfMissing True (takeDirectory file)
Example 3: Compile a Haskell file, putting the .hi file under interface:takeDirectory file </> "interface" </> (takeFileName file -<.> "hi")
References: [1] Naming Files, Paths and Namespaces (Microsoft MSDN) -
No documentation available.
-
filepath System.OsPath.Posix No documentation available.
-
filepath System.OsPath.Posix Filepaths are char[] data on unix as passed to syscalls.
-
filepath System.OsPath.Posix Commonly used Posix string as uninterpreted char[] array.