Some notes, quotes & examples that I take while reading the Programming with Refinement Types book.
You need to install z3 4.7.1
for now (They just made some
changes that makes 4.8 incompatible). Also, use liquidhaskell
from the develop
branch.
Here is my NixOS config for LH
:
- https://github.com/vyorkin/nixos-config/blob/740e30defff098ef5deabcae9038ead4d967575d/cfgs/development/proof-assistants.nix#L14
- https://github.com/vyorkin/nixos-config/blob/740e30defff098ef5deabcae9038ead4d967575d/cfgs/development/haskell/packages/default.nix#L9
My Emacs config for LH
:
https://github.com/vyorkin/emacs.d#liquid-types
This is a Literal Haskell file! So feel free to play around with the examples!
There is a Liquid Haskell integration
package for
Cabal and Stack. See the
liquidhaskell-cabal-demo
for an example project setup. This project is another example of
using liquidhaskell-cabal
.