Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
PrefixPatSyn :: [Name] -> PatSynArgstemplate-haskell Language.Haskell.TH.Syntax pattern P {x y z} = p
PromotedInfixT :: Type -> Name -> Type -> Typetemplate-haskell Language.Haskell.TH.Syntax T :+: T
PromotedUInfixT :: Type -> Name -> Type -> Typetemplate-haskell Language.Haskell.TH.Syntax T :+: T
See Language.Haskell.TH.Syntax#infixUInfixE :: Exp -> Exp -> Exp -> Exptemplate-haskell Language.Haskell.TH.Syntax {x + y}
See Language.Haskell.TH.Syntax#infixUInfixP :: Pat -> Name -> Pat -> Pattemplate-haskell Language.Haskell.TH.Syntax foo ({x :+ y}) = e
See Language.Haskell.TH.Syntax#infixUInfixT :: Type -> Name -> Type -> Typetemplate-haskell Language.Haskell.TH.Syntax T + T
See Language.Haskell.TH.Syntax#infix-
template-haskell Language.Haskell.TH.Syntax Default fixity: infixl 9
qReifyFixity :: Quasi m => Name -> m (Maybe Fixity)template-haskell Language.Haskell.TH.Syntax No documentation available.
reifyFixity :: Name -> Q (Maybe Fixity)template-haskell Language.Haskell.TH.Syntax reifyFixity nm attempts to find a fixity declaration for nm. For example, if the function foo has the fixity declaration infixr 7 foo, then reifyFixity 'foo would return Just (Fixity 7 InfixR). If the function bar does not have a fixity declaration, then reifyFixity 'bar returns Nothing, so you may assume bar has defaultFixity.
-
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)