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. initWithDefault :: [a] -> [a] -> [a]

    Agda Agda.Utils.List

    init, safe. O(n).

  2. lastWithDefault :: a -> [a] -> a

    Agda Agda.Utils.List

    Last element (safe). Returns a default list on empty lists. O(n).

  3. tailWithDefault :: [a] -> [a] -> [a]

    Agda Agda.Utils.List

    Tail function (safe). Returns a default list on empty lists. O(1).

  4. headWithDefault :: a -> [a] -> a

    BNFC BNFC.Utils

    Get the first element of a list, fallback for empty list.

  5. findWithDefaultL :: DomCodCnt l r => Cod l -> Bimap l r -> Dom l -> Cod l

    bimaps Data.Bijection.Class

    No documentation available.

  6. findWithDefaultR :: DomCodCnt l r => Cod r -> Bimap l r -> Dom r -> Cod r

    bimaps Data.Bijection.Class

    No documentation available.

  7. fromListWithDefault :: a -> [a] -> BinList a

    binary-list Data.BinaryList

    O(n). Build a binary list from a linked list. If the input list has length different from a power of two, fill to the next power of two with a default element. Warning: this function crashes if the input list length is larger than any power of two in the type Int. However, this is very unlikely.

  8. lookupWithDefault :: a -> ByteString -> Trie a -> a

    bytestring-trie Data.Trie.Convenience

    Lookup a key, returning a default value if it's not found.

  9. optionWithDefault :: forall (m :: Type -> Type) (n :: Type -> Type) s a . (Alternative m, Alternative n) => Format m n s () -> Format m n s a -> Format m n s (Maybe a)

    construct Construct

    Like optional except with arbitrary default serialization for the Nothing value.

    optional = optionWithDefault (literal mempty)
    

  10. parseArgumentWithDefault :: String -> Parser b -> b -> Parser b

    currycarbon Currycarbon.ParserHelpers

    No documentation available.

Page 13 of many | Previous | Next