Hoogle Search

Within LTS Haskell 24.63 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. hHyperlinkWithId :: Handle -> String -> String -> String -> IO ()

    ansi-terminal System.Console.ANSI

    No documentation available.

  2. hideCursor :: IO ()

    ansi-terminal System.Console.ANSI

    No documentation available.

  3. hideCursorCode :: String

    ansi-terminal System.Console.ANSI

    No documentation available.

  4. hyperlinkWithId :: String -> String -> String -> IO ()

    ansi-terminal System.Console.ANSI

    Introduce a hyperlink with an identifier for the link. Some terminals support an identifier, so that hyperlinks with the same identifier are treated as connected.

  5. hyperlinkWithIdCode :: String -> String -> String -> String

    ansi-terminal System.Console.ANSI

    Code to introduce a hyperlink with an identifier for the link. Some terminals support an identifier, so that hyperlinks with the same identifier are treated as connected.

  6. listFilesInside :: (FilePath -> IO Bool) -> FilePath -> IO [FilePath]

    extra Extra

    Like listFilesRecursive, but with a predicate to decide where to recurse into. Typically directories starting with . would be ignored. The initial argument directory will have the test applied to it.

    listTest (listFilesInside $ pure . not . isPrefixOf "." . takeFileName)
    ["bar.txt","foo" </> "baz.txt",".foo" </> "baz2.txt", "zoo"] ["bar.txt","zoo","foo" </> "baz.txt"]
    listTest (listFilesInside $ const $ pure False) ["bar.txt"] []
    

  7. listFilesInside :: (FilePath -> IO Bool) -> FilePath -> IO [FilePath]

    extra System.Directory.Extra

    Like listFilesRecursive, but with a predicate to decide where to recurse into. Typically directories starting with . would be ignored. The initial argument directory will have the test applied to it.

    listTest (listFilesInside $ pure . not . isPrefixOf "." . takeFileName)
    ["bar.txt","foo" </> "baz.txt",".foo" </> "baz2.txt", "zoo"] ["bar.txt","zoo","foo" </> "baz.txt"]
    listTest (listFilesInside $ const $ pure False) ["bar.txt"] []
    

  8. package semigroupoids

    Semigroupoids: Category sans id Provides a wide array of (semi)groupoids and operations for working with them. A Semigroupoid is a Category without the requirement of identity arrows for every object in the category. A Category is any Semigroupoid for which the Yoneda lemma holds. When working with comonads you often have the <*> portion of an Applicative, but not the pure. This was captured in Uustalu and Vene's "Essence of Dataflow Programming" in the form of the ComonadZip class in the days before Applicative. Apply provides a weaker invariant, but for the comonads used for data flow programming (found in the streams package), this invariant is preserved. Applicative function composition forms a semigroupoid. Similarly many structures are nearly a comonad, but not quite, for instance lists provide a reasonable extend operation in the form of tails, but do not always contain a value. We describe the relationships between the type classes defined in this package and those from base (and some from contravariant) in the diagram below. Thick-bordered nodes correspond to type classes defined in this package; thin-bordered ones correspond to type classes from elsewhere. Solid edges indicate a subclass relationship that actually exists; dashed edges indicate a subclass relationship that should exist, but currently doesn't. Apply, Bind, and Extend (not shown) give rise the Static, Kleisli and Cokleisli semigroupoids respectively. This lets us remove many of the restrictions from various monad transformers as in many cases the binding operation or <*> operation does not require them. Finally, to work with these weaker structures it is beneficial to have containers that can provide stronger guarantees about their contents, so versions of Traversable and Foldable that can be folded with just a Semigroup are added.

  9. module Data.Functor.Contravariant.Decide

    This module is only available if building with GHC 8.6 or later, or if the +contravariant cabal build flag is available.

  10. class Contravariant f => Decide (f :: Type -> Type)

    semigroupoids Data.Functor.Contravariant.Decide

    The contravariant analogue of Alt. If one thinks of f a as a consumer of as, then decide allows one to handle the consumption of a value by choosing to handle it via exactly one of two independent consumers. It redirects the input completely into one of two consumers. decide takes the "decision" method and the two potential consumers, and returns the wrapped/combined consumer. Mathematically, a functor being an instance of Decide means that it is "semigroupoidal" with respect to the contravariant "either-based" Day convolution (data EitherDay f g a = forall b c. EitherDay (f b) (g c) (a -> Either b c)). That is, it is possible to define a function (f EitherDay f) a -> f a in a way that is associative.

Page 411 of many | Previous | Next