To use LH with Cabal builds:
- Create a script named 'ghc' on your path, which executes: 'liquid -q --ghcoptions $@ -i/opt/liquid'. This passes expected options through LH.
- Download the source for the package in question.
- Run 'cabal configure' in a normal terminal environment (LH spits out a copyright statement that confuses the normal GHC version check)
- Add to text.cabal, under the 'library' heading: 'hs-source-dirs: . <path-to-RG.hs>' (this adds the RG module to the search path)
- In a shell configured to run the 'liquid' executable, run 'cabal build'