Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Search m => SStrategy m where Source #
sfilter :: Relation r => (k -> k -> r) -> (Int -> Int) -> m ([k], e) -> m ([k], e) Source #
ofilter :: Relation r => (k -> k -> r) -> m (k, e) -> m (k, e) Source #
arbitraries :: Arbitrary a => [a] Source #
nubSortByBot :: (a -> a -> Maybe Ordering) -> [a] -> [a] Source #
class Eq rel => Relation rel where Source #
(/), appendWithBy, diffBy, cEQ
fromListBy :: (k -> k -> rel) -> [k] -> [k] Source #
fromListByDB :: (k -> k -> rel) -> [(k, Int)] -> [(k, Int)] Source #
(/) :: [k] -> (k -> k -> rel) -> [[k]] Source #
appendWithBy :: (k -> k -> k) -> (k -> k -> rel) -> [k] -> [k] -> [k] Source #
Instances
Relation Bool Source # | |
Defined in MagicHaskeller.Classification fromListBy :: (k -> k -> Bool) -> [k] -> [k] Source # fromListByDB :: (k -> k -> Bool) -> [(k, Int)] -> [(k, Int)] Source # (/) :: [k] -> (k -> k -> Bool) -> [[k]] Source # appendWithBy :: (k -> k -> k) -> (k -> k -> Bool) -> [k] -> [k] -> [k] Source # | |
Relation Ordering Source # | |
Defined in MagicHaskeller.Classification fromListBy :: (k -> k -> Ordering) -> [k] -> [k] Source # fromListByDB :: (k -> k -> Ordering) -> [(k, Int)] -> [(k, Int)] Source # (/) :: [k] -> (k -> k -> Ordering) -> [[k]] Source # appendWithBy :: (k -> k -> k) -> (k -> k -> Ordering) -> [k] -> [k] -> [k] Source # diffBy :: (k -> k -> Ordering) -> [k] -> [k] -> [k] Source # | |
Relation (Maybe Ordering) Source # | |
Defined in MagicHaskeller.Classification fromListBy :: (k -> k -> Maybe Ordering) -> [k] -> [k] Source # fromListByDB :: (k -> k -> Maybe Ordering) -> [(k, Int)] -> [(k, Int)] Source # (/) :: [k] -> (k -> k -> Maybe Ordering) -> [[k]] Source # appendWithBy :: (k -> k -> k) -> (k -> k -> Maybe Ordering) -> [k] -> [k] -> [k] Source # diffBy :: (k -> k -> Maybe Ordering) -> [k] -> [k] -> [k] Source # |
appendQuotientsBy :: Relation rel => (k -> k -> rel) -> [[k]] -> [[k]] -> [[k]] Source #
appendRepresentativesBy :: Relation rel => (k -> k -> rel) -> [k] -> [k] -> [k] Source #
unionWithBy :: (a -> a -> a) -> (a -> a -> Bool) -> [a] -> [a] -> [a] Source #
class Filtrable a where Source #
filt :: SStrategy m => (Int -> Int) -> m (a, e) -> m e Source #
filtFun :: (SStrategy m, Arbitrary b) => (Int -> Int) -> m (b -> a, e) -> m e Source #
unsafeFilt :: SStrategy m => Maybe Int -> (Int -> Int) -> m (a, e) -> m e Source #
unsafeFiltFun :: (SStrategy m, Arbitrary b) => Maybe Int -> (Int -> Int) -> m (b -> a, e) -> m e Source #
Instances
filtNullary :: (SStrategy m, Relation r) => (k -> k -> r) -> (Int -> Int) -> m (k, e) -> m e Source #
filtUnary :: (SStrategy f, Relation r, Arbitrary a) => (k -> k -> r) -> (Int -> Int) -> f (a -> k, b) -> f b Source #
sfilterMx :: Relation r => (k -> k -> r) -> (Int -> Int) -> Matrix ([k], e) -> Matrix ([k], e) Source #
liftRelation :: Relation r => (k -> k -> r) -> Int -> ([k], e) -> ([k], e) -> r Source #