Copyright | (c) Anton Marchenko Mansur Ziatdinov 2016-2017 |
---|---|
License | BSD-3 |
Maintainer | gltronred@gmail.com |
Stability | provisional |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
This module exports all interpreters.
- data Cases a b
- getCases :: (Eq a, Eq b) => Cases a b -> [[(a, b)]]
- data Description a b
- getDescription :: Description a b -> [Text]
- data Solution a b
- getSolutions :: Solution b c -> [b -> c]
Interpreter for corner cases
Type of interpreter
:: (Eq a, Eq b) | |
=> Cases a b | Interpreter |
-> [[(a, b)]] | List (for each variant) of lists of pairs of input and output. |
Get a list of corner cases for each variant
Interpreter for description
data Description a b Source #
Type for interpreter
getDescription :: Description a b -> [Text] Source #
Get a list of texts of variants
Interpreter for solution
Type for interpreter
getSolutions :: Solution b c -> [b -> c] Source #
Extract a list of solutions (functions that map input to output)