modsplit-0.2.1: Haskell source splitter driven by special comments.

Portabilityportable
Stabilityexperimental
Maintainergolubovsky@gmail.com

Data.SplitBounds

Description

Defines string literals for module split boundaries.

Synopsis

Documentation

splitOpen :: StringSource

A special comment to mark the start of a section to uncomment when splitting.

splitClose :: StringSource

A special comment to mark the end of a section to uncomment when splitting.

splitBegin :: StringSource

A special comment to mark the start of a module to be created by the splitter. It should be followed immediately by a forward slash and a name of the module to create (with dots). Thus,

 splitBegin ++ "/" ++ "Data.Foo"

results in creation of a file "Data/Foo.hs" relatively to the current directory.

splitEnd :: StringSource

A special comment to mark the end of a module to be created by the splitter.

parts :: (a -> Bool) -> [a] -> [[a]]Source

A generic version of words: breaks a list by any predicate.