Hoogle Search

Within LTS Haskell 23.26 (ghc-9.8.4)

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

  1. fromList :: HasCallStack => [a] -> NonEmpty a

    base Data.List.NonEmpty

    Converts a normal list to a NonEmpty stream. Raises an error if given an empty list.

  2. fromList :: IsList l => [Item l] -> l

    base GHC.Exts

    The fromList function constructs the structure l from the given list of Item l

  3. fromList :: IsList l => [Item l] -> l

    base GHC.IsList

    The fromList function constructs the structure l from the given list of Item l

  4. fromList :: [(Key, a)] -> IntMap a

    containers Data.IntMap.Internal

    Create a map from a list of key/value pairs.

    fromList [] == empty
    fromList [(5,"a"), (3,"b"), (5, "c")] == fromList [(5,"c"), (3,"b")]
    fromList [(5,"c"), (3,"b"), (5, "a")] == fromList [(5,"a"), (3,"b")]
    

  5. fromList :: [(Key, a)] -> IntMap a

    containers Data.IntMap.Lazy

    Create a map from a list of key/value pairs.

    fromList [] == empty
    fromList [(5,"a"), (3,"b"), (5, "c")] == fromList [(5,"c"), (3,"b")]
    fromList [(5,"c"), (3,"b"), (5, "a")] == fromList [(5,"a"), (3,"b")]
    

  6. fromList :: [(Key, a)] -> IntMap a

    containers Data.IntMap.Strict

    Create a map from a list of key/value pairs.

    fromList [] == empty
    fromList [(5,"a"), (3,"b"), (5, "c")] == fromList [(5,"c"), (3,"b")]
    fromList [(5,"c"), (3,"b"), (5, "a")] == fromList [(5,"a"), (3,"b")]
    

  7. fromList :: [(Key, a)] -> IntMap a

    containers Data.IntMap.Strict.Internal

    Create a map from a list of key/value pairs.

    fromList [] == empty
    fromList [(5,"a"), (3,"b"), (5, "c")] == fromList [(5,"c"), (3,"b")]
    fromList [(5,"c"), (3,"b"), (5, "a")] == fromList [(5,"a"), (3,"b")]
    

  8. fromList :: [Key] -> IntSet

    containers Data.IntSet

    Create a set from a list of integers.

  9. fromList :: [Key] -> IntSet

    containers Data.IntSet.Internal

    Create a set from a list of integers.

  10. fromList :: Ord k => [(k, a)] -> Map k a

    containers Data.Map.Internal

    Build a map from a list of key/value pairs. See also fromAscList. If the list contains more than one value for the same key, the last value for the key is retained. If the keys of the list are ordered, a linear-time implementation is used.

    fromList [] == empty
    fromList [(5,"a"), (3,"b"), (5, "c")] == fromList [(5,"c"), (3,"b")]
    fromList [(5,"c"), (3,"b"), (5, "a")] == fromList [(5,"a"), (3,"b")]
    

Page 1 of many | Next