Portability | Portable (Cookbook) |
---|---|
Stability | Unstable |
Maintainer | nathanpisarski@gmail.com |
Safe Haskell | Safe-Inferred |
Library for overloading functions across lists and singular items, as well as tupples. Somewhat abuses FlexibleInstance and Typeclasses.
- class Continuous list part where
- class Splicable a b where
- splice :: a -> b -> a
- class Replacable list repls where
- replace :: list -> repls -> list
- class Removable list toRm where
- remove :: list -> toRm -> list
Documentation
class Continuous list part whereSource
Classifies items that can be modified by either a list or item.
after :: list -> part -> listSource
Returns all elements after part.
before :: list -> part -> listSource
Returns all elements after part.
delete :: list -> part -> listSource
Removes part from the list.
Eq a => Continuous [a] a | |
Eq a => Continuous [a] [a] |
class Splicable a b whereSource
Classifies information which can be split by a tupple.
Removes everything between the tupple's parameters, including the parameters themselves.
class Replacable list repls whereSource
Classifies data which can be replaced.
Eq a => Replacable [a] [([a], [a])] | |
Eq a => Replacable [a] [(a, a)] | |
Eq a => Replacable [a] ([a], [a]) | |
Eq a => Replacable [a] (a, a) |