Copyright | (C) 2012-2014 Edward Kmett, Alexander Altman |
---|---|

License | BSD-style (see the file LICENSE) |

Maintainer | Edward Kmett <ekmett@gmail.com> |

Stability | provisional |

Portability | Rank2Types |

Safe Haskell | Safe-Inferred |

Language | Haskell98 |

Lenses for working with Data.List.Split

- splitting :: Splitter a -> Getting (Endo [a]) s a -> Fold s [a]
- splittingOn :: Eq a => [a] -> Getting (Endo [a]) s a -> Fold s [a]
- splittingOneOf :: Eq a => [a] -> Getting (Endo [a]) s a -> Fold s [a]
- splittingWhen :: (a -> Bool) -> Getting (Endo [a]) s a -> Fold s [a]
- endingBy :: Eq a => [a] -> Getting (Endo [a]) s a -> Fold s [a]
- endingByOneOf :: Eq a => [a] -> Getting (Endo [a]) s a -> Fold s [a]
- wordingBy :: (a -> Bool) -> Getting (Endo [a]) s a -> Fold s [a]
- liningBy :: (a -> Bool) -> Getting (Endo [a]) s a -> Fold s [a]
- chunking :: Int -> Getting (Endo [a]) s a -> Fold s [a]
- splittingPlaces :: Integral n => [n] -> Getting (Endo [a]) s a -> Fold s [a]
- splittingPlacesBlanks :: Integral n => [n] -> Getting (Endo [a]) s a -> Fold s [a]
- delimiters :: Lens (Splitter a) (Splitter b) [a -> Bool] [b -> Bool]
- delimiting :: Lens' (Splitter a) DelimPolicy
- condensing :: Lens' (Splitter a) CondensePolicy
- keepInitialBlanks :: Lens' (Splitter a) Bool
- keepFinalBlanks :: Lens' (Splitter a) Bool

# Splitting Folds

# Lenses for `Splitter`

Internals

delimiters :: Lens (Splitter a) (Splitter b) [a -> Bool] [b -> Bool] Source

Modify or retrieve the list of delimiters for a `Splitter`

.

delimiting :: Lens' (Splitter a) DelimPolicy Source

Modify or retrieve the policy for what a `Splitter`

should do with delimiters.

condensing :: Lens' (Splitter a) CondensePolicy Source

Modify or retrieve the policy for what a `Splitter`

should do about consecutive delimiters.