logo
首页技术栈工具库讨论
quickspec

quickspec

QuickSpec takes your Haskell code and, as if by magic, discovers laws about it. You give QuickSpec a collection of Haskell functions; QuickSpec tests your functions with QuickCheck and prints out laws which seem to hold. For example, give QuickSpec the functions reverse, ++ and [], and it will find six laws: QuickSpec can find equational laws as well as conditional equations. All you need to supply are the functions to test, as well as Ord and Arbitrary instances for QuickSpec to use in testing; the rest is automatic. For information on how to use QuickSpec, see the documentation in the main module, QuickSpec. You can also look in the examples directory, for example at Lists.hs, IntSet.hs, or Parsing.hs. To read about how QuickSpec works, see our paper, Quick specifications for the busy programmer.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
GitHub iconnick8325/quickspec206
HACKAGE
carbal install quickspec
查看
标签
根据用户添加的标签生成
暂无标签