packages feed

lists 0.3.0 → 0.3.1

raw patch · 2 files changed

+3/−4 lines, 2 files

Files

lists.cabal view
@@ -1,5 +1,5 @@ name:                lists-version:             0.3.0+version:             0.3.1 synopsis:            Functions for dealing with lists description:         Functions for dealing with lists license:             BSD3
src/Data/Lists.hs view
@@ -23,7 +23,6 @@   ,valuesAL   ,breakList   ,replace-  ,joins   ,genericJoin   ,addToAL   ,delFromAL@@ -170,7 +169,7 @@ -}  replace :: Eq a => [a] -> [a] -> [a] -> [a]-replace old new l = joins new . splitOn old $ l+replace old new l = intercalate new . splitOn old $ l  {- | Like 'intercalate', but works with a list of anything showable, converting it to a String.@@ -182,7 +181,7 @@  -} genericJoin :: Show a => String -> [a] -> String-genericJoin delim l = joins delim (map show l)+genericJoin delim l = intercalate delim (map show l)  {- | Adds the specified (key, value) pair to the given list, removing any existing pair with the same key already present. -}