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.

  1. PrefixPatSyn :: [Name] -> PatSynArgs

    template-haskell Language.Haskell.TH.Syntax

    pattern P {x y z} = p
    

  2. PromotedInfixT :: Type -> Name -> Type -> Type

    template-haskell Language.Haskell.TH.Syntax

    T :+: T
    

  3. PromotedUInfixT :: Type -> Name -> Type -> Type

    template-haskell Language.Haskell.TH.Syntax

    T :+: T
    
    See Language.Haskell.TH.Syntax#infix

  4. UInfixE :: Exp -> Exp -> Exp -> Exp

    template-haskell Language.Haskell.TH.Syntax

    {x + y}
    
    See Language.Haskell.TH.Syntax#infix

  5. UInfixP :: Pat -> Name -> Pat -> Pat

    template-haskell Language.Haskell.TH.Syntax

    foo ({x :+ y}) = e
    
    See Language.Haskell.TH.Syntax#infix

  6. UInfixT :: Type -> Name -> Type -> Type

    template-haskell Language.Haskell.TH.Syntax

    T + T
    
    See Language.Haskell.TH.Syntax#infix

  7. defaultFixity :: Fixity

    template-haskell Language.Haskell.TH.Syntax

    Default fixity: infixl 9

  8. qReifyFixity :: Quasi m => Name -> m (Maybe Fixity)

    template-haskell Language.Haskell.TH.Syntax

    No documentation available.

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

  10. module System.FilePath.Posix

    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.

    And we could have built an equivalent path with the following expressions:
    • "/directory" </> "file.ext".
    • "/directory/file" <.> "ext".
    • "/directory/file.txt" -<.> "ext".
    Each function in this module is documented with several examples, which are also used as tests. Here are a few examples of using the filepath functions together: Example 1: Find the possible locations of a Haskell module Test imported from module Main:
    [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)

Page 42 of many | Previous | Next