Is there Liquid Haskell enabled Prelude?

241 views Asked by At

Is there a annotated variant or Haskell Prelude available for easy migration of existing programs that call functions like head or length?

1

There are 1 answers

0
sclv On

As discussed in the LH Documentation, you can augment existing files with .spec files that give just specifications of already existing code. LH itself comes with a large prelude (see the include folder) that includes specifications for lots of common stuff, including head, length, functions on Data.Set, etc.