Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

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

  1. filterToposortToModules :: [SCC ModuleGraphNode] -> [SCC ModSummary]

    ghc-lib-parser GHC.Unit.Module.Graph

    This function filters out all the instantiation nodes from each SCC of a topological sort. Use this with care, as the resulting "strongly connected components" may not really be strongly connected in a direct way, as instantiations have been removed. It would probably be best to eliminate uses of this function where possible.

  2. isSortedBy :: (a -> a -> Ordering) -> [a] -> Bool

    ghc-lib-parser GHC.Utils.Misc

    No documentation available.

  3. nubSort :: Ord a => [a] -> [a]

    ghc-lib-parser GHC.Utils.Misc

    No documentation available.

  4. itsOrTheir :: [a] -> SDoc

    ghc-lib-parser GHC.Utils.Outputable

    Determines the form of possessive appropriate for the length of a list:

    itsOrTheir [x]   = text "its"
    itsOrTheir [x,y] = text "their"
    itsOrTheir []    = text "their"  -- probably avoid this
    

  5. thisOrThese :: [a] -> SDoc

    ghc-lib-parser GHC.Utils.Outputable

    Determines the form of subject appropriate for the length of a list:

    thisOrThese [x]   = text "This"
    thisOrThese [x,y] = text "These"
    thisOrThese []    = text "These"  -- probably avoid this
    

  6. data HsTupleSort

    ghc-lib-parser Language.Haskell.Syntax.Type

    Haskell Tuple Sort

  7. cursorToLL :: TermStr s => Capability s

    terminfo System.Console.Terminfo.Cursor

    No documentation available.

  8. censorText :: Text -> Text

    dhall Dhall.Core

    Utility used to censor Text by replacing all characters with a space

  9. isSorted :: Eq k => Map k v -> Bool

    dhall Dhall.Map

    Check if the keys of a Map are already sorted

    isSorted (sort m) = True
    
    >>> isSorted (fromList [("B",1),("A",2)])  -- Sortedness is based only on keys
    False
    
    >>> isSorted (fromList [("A",2),("B",1)])
    True
    

  10. _Sort :: Parser ()

    dhall Dhall.Parser.Token

    Parse the Sort built-in This corresponds to the Sort rule from the official grammar

Page 115 of many | Previous | Next