exference
Version 1.6.0.0 revision 2 uploaded by lspitzner.
Package meta
- Synopsis
- Tool to search/generate (haskell) expressions with a given type
- Description
Type inference takes an expression and tells you its type. This process can be inversed: We recursively create random expression trees while checking that they -so far- match a given input type. At each step we do the backwards step of the inference algorithm step. If you are lucky, this search yields one or more expressions.
Djinn is a similar tool that guarantees to always terminate. But the cost of that property is that Djinn does not properly handle polymorphic queries - and those are the interesting ones, really :)
Exference supports type classes, handles undeclared types well (Foo -> Foo yields id for unknown Foo), does _not_ check kinds, can pattern-match on newtypes, supports RankNTypes.
Exference reads an environment of function types, data types, type classes and instances. The user can add to this environment, but keep in mind that each addition enlarges the search space.
- Author
- Lennart Spitzner
- Bug reports
- https://github.com/lspitzner/exference/issues
- Category
- Language
- Copyright
- n/a
- Homepage
- https://github.com/lspitzner/exference
- Maintainer
- Lennart Spitzner <lsp@informatik.uni-kiel.de>
- Package URL
- n/a
- Stability
- stable