split

Combinator library for splitting lists.

Version on this page:0.2.2
LTS Haskell 8.2:0.2.3.1
Stackage Nightly 2017-02-25:0.2.3.1
Latest on Hackage:0.2.3.1
BSD3 licensed by Brent Yorgey
Maintained by byorgey@gmail.com

Module documentation for 0.2.2

There are no documented modules for this package.


Data.List.Split provides a wide range of strategies and a unified
combinator framework for splitting lists with respect to some sort of
delimiter.

------------------------------------------------------------------------

Dependencies:

There are no dependencies other than the base package.
Data.List.Split has been tested with versions of GHC from 6.8.3 up
through 7.6.1. It is completely Haskell2010 (probably also
Haskell98) compliant, so it probably builds with other compilers as
well.

The Properties.hs file depends on QuickCheck >= 2.4, but you don't
need it in order to build the library itself, only to run the tests.

Build with Cabal:

cabal install

Building Haddock documentation (recommended):

cabal haddock

Once the documentation has been built, you can access it by
pointing your browser to dist/doc/html/split/index.html.

Running the tests:

cabal configure --enable-tests && cabal build && cabal test

Changes

* 0.2.3.1 (2 May 2016)

- Fix a test case which was causing occasional spurious test suite
failures due to too many discarded tests. Thanks to Doug
Beardsley and Peter Simons for reporting the issue.

* 0.2.3 (12 January 2016)

- New function 'divvy' (with associated tests) from Tim Washington.

* 0.2.2r2 (7 Jan 2016)

- allow base-4.9

* 0.2.2r1 (12 Dec 2014)

- allow base-4.8

* 0.2.2 (14 April 2013)

- Add 'dropInnerBlanks' combinator for dropping blank chunks between
consecutive delimiters while still keeping the delimiters separate.

* 0.2.1.3 (28 March 2013)

- bump upper bound to allow base-4.7

* 0.2.1.2 (28 January 2013)

- Patch from Daniel Wagner to make splitting lazier when using
keepDelimsR. Previously nothing was output until encountering a
delimiter; now it can start outputting a Text chunk before
reaching a delimiter.

* 0.2.1.1 (24 September 2012)

- Update this CHANGES file with details from the past two releases.

* 0.2.1.0 (24 September 2012)

- Go back to generic definition of 'build' (reverses change
introduced in 0.1.4.3), for simplicity and Haskell2010 compliance.

* 0.2.0.0 (21 August 2012)

- test with GHC 7.6.1 and bump base dependency to allow base-4.6

- deprecate synonyms: sepBy, sepByOneOf, unintercalate, chunk

- rename splitEvery to chunksOf

- unify Delimiter definition, and get rid of GADTs extension

* 0.1.4.3 (7 June 2012)

- Import 'build' function from GHC.Exts instead of defining it by
hand, which can lead to some speedups (since GHC has special
rewriting rules for the version in GHC.Exts). Of course this ties
it to GHC; if you want to build split under some other compiler,
let me know and I can add some CPP directives to define 'build'
conditionally.

- Remove unnecessary Rank2Types extension.

* 0.1.4.2 (21 December 2011)

- Bump version upper bound for base and Test with GHC 7.4.1rc1

* 0.1.4.1 (3 August 2011)

- Bump version upper bound for base and test with GHC 7.2.0rc1.

* 0.1.4

- Add 'splitPlacesBlanks' function from Daniel Wagner; like
'splitPlaces' but pads the output with blank lists to match the
length of the input list of places to split.

* 0.1.3

- Add 'chop' list-processing function.

* 0.1.2.3

- Now builds with GHC 7

* 0.1.2.2

- Fix typo in documentation (davidL)

- Lazier implementation of splitInternal from Jan Christiansen.
Performance on large lists with not very many split points is now
greatly improved.
Depends on:
Used by 419 packages:
AndroidViewHierarchyImporter, BCMtools, Biobase, BiobaseTurner, BiobaseXNA, BlogLiterately, CLI, DPM, DnaProteinAlignment, Dust, Dust-crypto, Dust-tools, Dust-tools-pcap, Focus, Genbank, GoogleCodeJam, GoogleSB, HGamer3D-GUI, HGamer3D-Graphics3D, HSGEP, HerbiePlugin, LambdaNet, LogicGrowsOnTrees, Lykah, MC-Fold-DP, MorseCode, NTRU, Nomyx-Web, OrPatterns, PrimitiveArray-Pretty, R-pandoc, RNAFoldProgs, RNAdraw, RNAlien, RNAwolf, Rlang-QQ, SVGFonts, SWMMoutGetMB, SciFlow, Semantique, SimpleTableGenerator, VKHS, WMSigner, acme-pointful-numbers, activehs, affine-invariant-ensemble-mcmc, aivika-experiment, aivika-experiment-chart, ampersand, amqp, amqp-worker, angle, api-field-json-th, apis, arion, array-forth, arxiv, ascii-vector-avc, atlassian-connect-core, bighugethesaurus, bindings-codec2, bioinformatics-toolkit, bittorrent, bitx-bitcoin, blacktip, blatex, blosum, boxes, bpann, braid, buchhaltung, bumper, c2hsc, cabal-graphdeps, cabal2nix, cake, cantor, cartel, casing, cg, cgrep, cipher-rc5, clac, clafer, claferwiki, clit, cmark-sections, cmdlib, cnc-spec-compiler, codecov-haskell, colada, color-counter, commodities, concraft-hr, concraft-pl, console-program, craft, crawlchain, creatur, crypto-enigma, csv-to-qif, current-locale, darcs-benchmark, darcsden, data-filepath, dbmigrations, dbmigrations-mysql, debian-build, devil, dgs, diagrams-builder, diagrams-cairo, diagrams-contrib, diagrams-graphviz, diagrams-haddock, diagrams-html5, diagrams-pdf, diagrams-pgf, diagrams-postscript, diagrams-svg, dictparser, discord-hs, distribution-nixpkgs, diversity, docvim, elm-hybrid, emacs-keys, exference, fake-type, faker, fasta, fay, fay-builder, fficxx, filestore, fix-imports, float-binstring, flowdock-api, foldl-transduce, fullstop, funcons-tools, gegl, ghc-mod, ghc-pkg-autofix, ghcjs-vdom, gimlh, gipeda, git-vogue, gitit, gitlib-s3, gl, glintcollider, glirc, goat, gpolyline, grasp, gtfs, h-reversi, hOpenPGP, hXmixer, haar, hack-middleware-cleanpath, hack-middleware-gzip, hackage-server, hackport, hadoop-tools, haggis, hakyll-contrib-hyphenation, handa-gdata, handa-opengl, handsy, handwriting, haquery, hashids, haskarrow, haskell-igraph, haskell-kubernetes, haskell-tools-ast-fromghc, haskell-tools-backend-ghc, haskell-tools-cli, haskell-tools-daemon, haskell-tools-prettyprint, haskell-tools-refactor, haskellscrabble, haskelm, haskoin, haskoin-core, haskoin-wallet, hath, hax, haxparse, hbayes, hbcd, hcltest, hdf, heckle, hell, hemokit, her-lexer, hi, hipchat-hs, hipe, hledger, hledger-lib, hledger-ui, hmatrix, hmt, hoe, holy-project, hopfield, hopfield-networks, hothasktags, hpaco-lib, hpc-coveralls, hs2dot, hsbencher-fusion, hsc3, hsc3-cairo, hsc3-data, hsc3-graphs, hsc3-lang, hsc3-plot, hsc3-rw, hsenv, hsimport, hspear, hspec-setup, htiled, htsn-import, hulk, hunch, hunp, hup, hxt-css, idna2008, idris, ihaskell, ihaskell-rlangqq, imbib, imparse, intel-aes, iridium, iterio-server, j2hs, java-bridge, jmacro-rpc, jobqueue, keysafe, laborantin-hs, lambdabot-core, lambdabot-haskell-plugins, lambdabot-irc-plugins, lambdabot-misc-plugins, lambdabot-reference-plugins, lambdabot-social-plugins, language-dockerfile, language-puppet, leaf, leankit-api, legion-extra, libroman, lists, llvm-general-quote, log-postgres, lol-apps, lol-benches, loshadka, macbeth-lib, mackerel-client, manatee-anything, manatee-core, manatee-ircclient, marmalade-upload, mathista, matsuri, mcpi, mediawiki2latex, memcache-conduit, memcache-haskell, memis, mi, minirotate, modify-fasta, mono-traversable, mosaico-lib, mpppc, msi-kb-backlit, music-preludes, music-util, mybitcoin-sci, nlp-scores-scripts, nptools, null-canvas, obd, on-a-horse, ottparse-pretty, packdeps, packunused, pandoc-citeproc, paranoia, pathfindingcore, penny, penny-lib, phoityne-vscode, phybin, pixelated-avatar-generator, pkggraph, plots, plotserver-api, pontarius-xmpp, postgresql-simple-url, potato-tool, prednote, primula-board, print-debugger, proc, protobuf-simple, purescript, putlenses, quickbench, rabocsv2qif, raft, rclient, reasonable-lens, redis-resp, rehoo, rei, rest-core, rest-gen, rhythm-game-tutorial, rospkg, rss2irc, rtorrent-rpc, salvia, salvia-extras, salvia-protocol, scholdoc-citeproc, scrabble-bot, sequor, servant-quickcheck, servant-server, setdown, sexp-grammar, sgf, shake-language-c, shell-conduit, sibe, simple-neural-networks, simplex, snake, sproxy, ssh, stack, stackage-cli, stdf, stomp-patterns, stomp-queue, stompl, subnet, subtitles, synt, table, taffybar, tamarin-prover-term, task-distribution, tasty-integrate, tasty-rerun, tellbot, tempo, termplot, text-xml-generic, thrift, tianbar, timestamp-subprocess-lines, tip-haskell-frontend, tip-lib, tokenize, toysolver, trawl, treemap-html-tools, trurl, tsparse, tsv2csv, tttool, twee, typescript-docs, uAgda, uhexdump, up, update-repos, ureader, urlencoded, vcswrapper, virthualenv, visual-prof, vivid, wai-devel, wai-middleware-preprocessor, wavy, web-routes, web-routes-th, weigh, wembley, whois, win-hp-path, windowslive, wol, workflow-types, wxc, wyvern, xcffib, xmltv, xmonad-extras, y0l0bot, yesod-bin, yi-contrib, yi-core, yi-emacs-colours, yst
comments powered byDisqus