liquidhaskell-0.8.10.2: Liquid Types for Haskell
Safe HaskellNone
LanguageHaskell98

Language.Haskell.Liquid.Synthesize.Generate

Synopsis

Documentation

data SearchMode Source #

Constructors

ArgsMode

searching for arguments of functions that can eventually produce the top level hole fill

ResultMode

searching for the hole fill

type Depth = Int Source #

Pruning terms for function application | --

feasibles :: Depth -> Int -> [(CoreExpr, Int)] -> [Int] Source #

isFeasible :: Depth -> [[(CoreExpr, Int)]] -> [[Int]] Source #

findFeasibles :: Depth -> [[(CoreExpr, Int)]] -> ([[Int]], [Int]) Source #

toExpr :: [Int] -> [(CoreExpr, Int)] -> ([(CoreExpr, Int)], [(CoreExpr, Int)]) Source #

fixCands :: Int -> [Int] -> [[(CoreExpr, Int)]] -> ([[(CoreExpr, Int)]], [[(CoreExpr, Int)]]) Source #

replace :: Int -> a -> [a] -> [a] Source #

The first argument should be an 1-based index.

repeatFix :: [Int] -> [[Int]] -> (Type, CoreExpr, Int) -> [[(CoreExpr, Int)]] -> [CoreExpr] -> SM [CoreExpr] Source #