| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Lang.ClassificationInstances
Contents
Documentation
unzipProof :: Proof ((h1, h2), j) -> (Proof (h1, j), Proof (h2, j)) #
isArithScore :: Fractional a => IsArith -> a #
isLiteralScore :: Fractional a => IsLiteral -> a #
newtype IsConditional #
Constructors
| IsConditional Bool |
Instances
| Show IsConditional # | |
Defined in Lang.ClassificationInstances Methods showsPrec :: Int -> IsConditional -> ShowS # show :: IsConditional -> String # showList :: [IsConditional] -> ShowS # | |
| Score IsConditional # | |
Defined in Lang.ClassificationInstances | |
| Classification IsConditional EvalJ IsConditionalCTX # | |
Defined in Lang.ClassificationInstances Methods classify :: IsConditionalCTX -> EvalJ -> [Proof (IsConditional, EvalJ)] -> IsConditional # | |
newtype IsConditionalCTX #
Constructors
| IsConditionalCTX Bool |
Instances
| Context IsConditionalCTX EvalJ # | |
Defined in Lang.ClassificationInstances Methods rootCtx :: Proxy EvalJ -> IsConditionalCTX # childContexts :: IsConditionalCTX -> Proof EvalJ -> [IsConditionalCTX] # | |
| Classification IsConditional EvalJ IsConditionalCTX # | |
Defined in Lang.ClassificationInstances Methods classify :: IsConditionalCTX -> EvalJ -> [Proof (IsConditional, EvalJ)] -> IsConditional # | |
isConditionalScore :: Fractional a => IsConditional -> a #
newtype IsBaseCase #
Instances
| Show IsBaseCase # | |
Defined in Lang.ClassificationInstances Methods showsPrec :: Int -> IsBaseCase -> ShowS # show :: IsBaseCase -> String # showList :: [IsBaseCase] -> ShowS # | |
| Score IsBaseCase # | |
Defined in Lang.ClassificationInstances | |
| Classification IsBaseCase EvalJ () # | |
Defined in Lang.ClassificationInstances Methods classify :: () -> EvalJ -> [Proof (IsBaseCase, EvalJ)] -> IsBaseCase # | |
| Strategy TestClassification EvalJ ((), IsRelevantRecCallCTX) # | |
Defined in Lang.ClassificationInstances | |
baseCaseScore :: IsBaseCase -> Float #
binOpScore :: IsBinOp -> Float #
ifExprScore :: IsIfExpr -> Float #
newtype IsRelevantRecCall #
Constructors
| IsRelevantRecCall Int |
Instances
| Show IsRelevantRecCall # | |
Defined in Lang.ClassificationInstances Methods showsPrec :: Int -> IsRelevantRecCall -> ShowS # show :: IsRelevantRecCall -> String # showList :: [IsRelevantRecCall] -> ShowS # | |
| Score IsRelevantRecCall # | |
Defined in Lang.ClassificationInstances | |
| Classification IsRelevantRecCall EvalJ IsRelevantRecCallCTX # | |
Defined in Lang.ClassificationInstances Methods classify :: IsRelevantRecCallCTX -> EvalJ -> [Proof (IsRelevantRecCall, EvalJ)] -> IsRelevantRecCall # | |
| Strategy TestClassification EvalJ ((), IsRelevantRecCallCTX) # | |
Defined in Lang.ClassificationInstances | |
newtype IsRelevantRecCallCTX #
Constructors
| IsRelevantRecCallCTX Int |
Instances
| Context IsRelevantRecCallCTX EvalJ # | |
Defined in Lang.ClassificationInstances Methods rootCtx :: Proxy EvalJ -> IsRelevantRecCallCTX # childContexts :: IsRelevantRecCallCTX -> Proof EvalJ -> [IsRelevantRecCallCTX] # | |
| Classification IsRelevantRecCall EvalJ IsRelevantRecCallCTX # | |
Defined in Lang.ClassificationInstances Methods classify :: IsRelevantRecCallCTX -> EvalJ -> [Proof (IsRelevantRecCall, EvalJ)] -> IsRelevantRecCall # | |
| Strategy TestClassification EvalJ ((), IsRelevantRecCallCTX) # | |
Defined in Lang.ClassificationInstances | |
closureScore :: IsClosure -> Float #
type CustomClassify = (((((((IsArith, IsLiteral), IsConditional), IsBaseCase), IsClosure), IsBinOp), IsIfExpr), IsRelevantRecCall) #
newtype CustomClassifyNT #
Constructors
| CustomClassifyNT CustomClassify |
runExample :: String -> IO () #
postProcessJ :: EvalJ -> EvalJ #
class PostProcessing a where #
Methods
postProcess :: a -> String #
Instances
| PostProcessing ArithmeticPostProcess # | |
Defined in Lang.ClassificationInstances Methods | |
| PostProcessing SimpleArithmeticPostProcess # | |
Defined in Lang.ClassificationInstances Methods | |
| Show j => PostProcessing (CanonicalPostProcess j) # | |
Defined in Lang.ClassificationInstances Methods postProcess :: CanonicalPostProcess j -> String # | |
newtype CanonicalPostProcess j #
Constructors
| CanonicalPostProcess j |
Instances
| Show j => PostProcessing (CanonicalPostProcess j) # | |
Defined in Lang.ClassificationInstances Methods postProcess :: CanonicalPostProcess j -> String # | |
newtype ArithmeticPostProcess #
Constructors
| ArithmeticPostProcess EvalJ |
Instances
| PostProcessing ArithmeticPostProcess # | |
Defined in Lang.ClassificationInstances Methods | |
newtype SimpleArithmeticPostProcess #
Constructors
| SimpleArithmeticPostProcess EvalJ |
Instances
| PostProcessing SimpleArithmeticPostProcess # | |
Defined in Lang.ClassificationInstances Methods | |
type TestClassification = (IsBaseCase, IsRelevantRecCall) #
pickTestClassficationStrategy :: Proof EvalJ -> [EvalJ] #
Orphan instances
| Context () j # | |
| (Context a j, Context b j) => Context (a, b) j # | |
| (Classification h1 j c1, Classification h2 j c2) => Classification (h1, h2) j (c1, c2) # | |
| (Context (a, b) j, Context c j) => Context (a, b, c) j # | |
| (Context (a, b, c) j, Context d j) => Context (a, b, c, d) j # | |
| (Context (a, b, c, d) j, Context e j) => Context (a, b, c, d, e) j # | |
| (Context (a, b, c, d, e) j, Context f j) => Context (a, b, c, d, e, f) j # | |
| (Context (a, b, c, d, e, f) j, Context g j) => Context (a, b, c, d, e, f, g) j # | |
| (Context (a, b, c, d, e, f, g) j, Context h j) => Context (a, b, c, d, e, f, g, h) j # | |
| (Context (a, b, c, d, e, f, g, h) j, Context i j) => Context (a, b, c, d, e, f, g, h, i) j # | |
| (Context (a, b, c, d, e, f, g, h, i) j, Context j' j) => Context (a, b, c, d, e, f, g, h, i, j') j # | |
| (Context (a, b, c, d, e, f, g, h, i, j') j, Context k j) => Context (a, b, c, d, e, f, g, h, i, j', k) j # | |
| (Context (a, b, c, d, e, f, g, h, i, j', k) j, Context l j) => Context (a, b, c, d, e, f, g, h, i, j', k, l) j # | |