To run liquid
you need to install:
- An SMT solver
- The
liquid
binary via package manager or source.
Download and install at least one of
Simply do:
cabal install liquidhaskell
We are working to put liquid
on stackage
.
If you want the most recent version, you can build from source as follows,
either using stack
(recommended) or cabal
. In either case: recursively
clone the repo and then build:
This requires that you have installed stack (which we strongly recommend!)
```
git clone --recursive [email protected]:ucsd-progsys/liquidhaskell.git
cd liquidhaskell
stack install
```
```
git clone --recursive [email protected]:ucsd-progsys/liquidhaskell.git
cd liquidhaskell
cabal sandbox init
cabal sandbox add-source ./liquid-fixpoint
cabal install
```
-
If you're on Windows, please make sure the SMT solver is installed in the same directory as LiquidHaskell itself (i.e. wherever
cabal
orstack
puts your binaries). That is, do:which liquid
and make sure that z3
or cvc4
or mathsat
are in the PATH
returned by the above.
-
If you installed via
stack
and are experiencing path related woes, try:stack exec -- liquid path/to/file.hs