Hoogle Search

Within LTS Haskell 24.64 (ghc-9.10.3)

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

  1. fromList :: [a] -> DList a

    dlist Data.DList

    fromList xs is a DList representing the list xs. fromList obeys the laws:

    toList . fromList = id
    fromList . toList = id
    
    This function is implemented with ++. Repeated uses of fromList are just as inefficient as repeated uses of ++. If you find yourself doing some form of the following (possibly indirectly), you may not be taking advantage of the DList representation and library:
    fromList . f . toList
    
    More likely, you will convert from a list, perform some operation on the DList, and convert back to a list:
    toList . g . fromList
    

  2. fromList :: [a] -> DNonEmpty a

    dlist Data.DList.DNonEmpty

    fromList xs is a DNonEmpty representing the list xs. If xs is empty, an error is raised. fromList obeys the law:

    fromList xs = fromNonEmpty (fromList xs)
    

  3. fromList :: [(Key, a)] -> CharMap a

    regex-tdfa Data.IntMap.CharMap2

    No documentation available.

  4. fromList :: Enum key => [(key, a)] -> EnumMap key a

    regex-tdfa Data.IntMap.EnumMap2

    No documentation available.

  5. fromList :: Enum e => [e] -> EnumSet e

    regex-tdfa Data.IntSet.EnumSet2

    No documentation available.

  6. fromList :: Ord k => T [] (k, a) -> T k a

    non-empty Data.NonEmpty.Map

    Warning: Dangerous because it silently drops colliding key/value pairs. Better use fromListWith with error or const.

  7. fromList :: Ord a => T [] a -> T a

    non-empty Data.NonEmpty.Set

    No documentation available.

  8. fromList :: Routable k => [(AddrRange k, a)] -> IPRTable k a

    iproute Data.IP.RouteTable

    The fromList function creates a new IP routing table from a list of a pair of IPrange and value.

  9. fromList :: Routable k => [(AddrRange k, a)] -> IPRTable k a

    iproute Data.IP.RouteTable.Internal

    The fromList function creates a new IP routing table from a list of a pair of IPrange and value.

  10. fromList :: MonadRandom m => [(a, Rational)] -> m a

    MonadRandom Control.Monad.Random.Class

    Sample a random value from a weighted list. The list must be non-empty and the total weight must be non-zero.

Page 2 of many | Previous | Next