MagicHaskeller-0.9.6.4.4: Automatic inductive functional programmer by systematic search

Safe HaskellNone
LanguageHaskell98

MagicHaskeller.IOGenerator

Synopsis

Documentation

arbitraries :: Arbitrary a => [a] Source

arbs :: Arbitrary a => Int -> StdGen -> [a] Source

showIOPairsWithFormsHTML Source

Arguments

:: String

CGI.myPath, which is usually "cgi-binMagicHaskeller.cgi"

-> String

predicate before escaping single quotes

-> String 
-> [ShownIOPair] 
-> String 

nubOn :: Eq a => (b -> a) -> [b] -> [b] Source

nubSortedOn :: Ord a => (b -> a) -> [b] -> [b] Source

nubSortedOn' :: Ord a => (b -> a) -> [b] -> [b] Source

type AnnShowS Source

Arguments

 = (String -> String)

annotater

-> String 
-> String 

showsInputs :: Foldable t => t ((a -> a) -> [Char] -> [Char]) -> [Char] -> [Char] Source

generateIOPairsLitNum :: (Num a, Ord a, Show a, IOGenerator b) => [a] -> (a -> b) -> [ShownIOPair] Source

class ShowArbitrary a where Source

ShowArbitrary is a variant of Arbitrary for presenting I/O example pairs. It uses everythingF for generating printable functions. Here `good presentation' is more important than `good randomness'.

sas :: Show a => (a -> Bool) -> [a] -> [(AnnShowS, a)] Source

sasNum :: (Show a, Arbitrary a, Num a, Ord a) => [(AnnShowS, a)] Source

sasFalse :: Show a => [a] -> [(AnnShowS, a)] Source

sasIntegral :: (Show a, Arbitrary a, Integral a, Ord a) => [(AnnShowS, a)] Source

mapSA :: [Char] -> (t -> t1) -> (t2 -> String -> [Char], t) -> (t2 -> ShowS, t1) Source

skip :: Int -> [a] -> [a] Source

chopBy :: [Int] -> [a] -> [[a]] Source

cvt :: [(AnnShowS, a)] -> (AnnShowS, [a]) Source

showsList :: [(a -> a) -> [Char] -> [Char]] -> (a -> a) -> ShowS Source

generateIOPairsFun :: (Ord a, Show a, Arbitrary a, IOGenerator b) => Bool -> (a -> b) -> [ShownIOPair] Source

uniqSort :: Ord a => [a] -> [a] Source