Could not find module ‘LiquidHaskell’

47 views
Skip to first unread message

Denis Shevchenko

unread,
Nov 16, 2016, 1:06:21 PM11/16/16
to liquidhaskell
Hi there!

I try to use `lq` quasiquoter as in example, but I got an error:

Could not find module ‘LiquidHaskell’

I'm using `liquidhaskell-0.6.0.0` (via `stack`), and it is in my `.cabal`-file, but I don't see module with such a name neither in Hackage-docs nor in `liquidhaskell-0.6.0.0.tar.gz`. So, where can I find this module?

Ranjit Jhala

unread,
Nov 16, 2016, 1:17:26 PM11/16/16
to Denis Shevchenko, liquidhaskell
Hi Denis,

Oops, I think the version with the QQ support 
is newer than whats on package -- actually high 
time we updated package, thanks for the reminder!

Can you build from source and then try it:


Thanks and my apologies for that!

Ranjit.

Denis Shevchenko

unread,
Nov 18, 2016, 1:21:35 AM11/18/16
to liquidhaskell, shev....@gmail.com, jh...@cs.ucsd.edu
Hi again! Sorry for delay...

I've tried use liquidhaskell from GitHub like this:

packages:
- '.'
- location:
    git: https://github.com/ucsd-progsys/liquidhaskell.git
    commit: 7b767d66b4c8c5e12ef7e16c80fc74b7919e0b4c
  subdirs:
  - prover
  - liquidd
esugar

But I've got an error during compilation:

.stack-work/downloaded/8EJFpP5Pnxr_/prover/src/Prover/SMTInterface.hs:9:29: Not in scope: ‘defConfig’

How can I fix it?

Niki Vazou

unread,
Nov 18, 2016, 1:30:34 AM11/18/16
to Denis Shevchenko, liquidhaskell, Ranjit Jhala
Unfortunately, if you want to link Liquid Haskell like this, you also need to link all the dependent modules, like here


--
You received this message because you are subscribed to the Google Groups "liquidhaskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liquidhaskell+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Niki

Denis Shevchenko

unread,
Nov 18, 2016, 1:48:50 AM11/18/16
to liquidhaskell, shev....@gmail.com, jh...@cs.ucsd.edu, nva...@cs.ucsd.edu
Thanks Niki! It works now!

Denis Shevchenko

unread,
Nov 18, 2016, 2:03:40 AM11/18/16
to liquidhaskell, shev....@gmail.com, jh...@cs.ucsd.edu, nva...@cs.ucsd.edu
Ops, another problem:

[lq| localPort :: {p:Int | p > 1023} |]
localPort = 3010


It compiles now, but liquid gave me this error:

liquid: /home/dshevchenko/.stack/snapshots/x86_64-linux/lts-6.3/7.10.3/lib/x86_64-linux-ghc-7.10.3/double-conversion-2.0.1.0-9d4SFE0Uwt89cnl39kvRqX/libHSdouble-conversion-2.0.1.0-9d4SFE0Uwt89cnl39kvRqX.a: unhandled ELF relocation(RelA) type 42

liquid: liquid: unable to load package `double-conversion-2.0.1.0'


If I use just comments {-@ @-} without lq - everything is ok..

Niki Vazou

unread,
Nov 18, 2016, 2:04:57 AM11/18/16
to Denis Shevchenko, liquidhaskell, Ranjit Jhala
Seems you need to `cabal install double-conversion ` (or stack install)

--
You received this message because you are subscribed to the Google Groups "liquidhaskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liquidhaskell+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Niki

Denis Shevchenko

unread,
Nov 18, 2016, 2:24:40 AM11/18/16
to liquidhaskell, shev....@gmail.com, jh...@cs.ucsd.edu, nva...@cs.ucsd.edu
Nope, I already have it:

$ ls /home/dshevchenko/.stack/snapshots/x86_64-linux/lts-6.3/7.10.3/lib/x86_64-linux-ghc-7.10.3/ | grep double
double-conversion-2.0.1.0-9d4SFE0Uwt89cnl39kvRqX


Package is here, but something wrong with it...

Denis Shevchenko

unread,
Nov 18, 2016, 2:48:38 AM11/18/16
to liquidhaskell, shev....@gmail.com, jh...@cs.ucsd.edu, nva...@cs.ucsd.edu
I use Ubuntu 16.04 and stack 1.1.2.

Ranjit Jhala

unread,
Nov 18, 2016, 10:47:07 AM11/18/16
to Denis Shevchenko, liquidhaskell, nva...@cs.ucsd.edu
This is odd -- but I have heard there is some strange interaction of the quasi quotes and doubles on certain platforms! May be the easiest to use the comment syntax for now. Sorry about this!

@gridaphobe do you have any recollection of this?

On Thu, Nov 17, 2016 at 11:48 PM Denis Shevchenko <shev....@gmail.com> wrote:
I use Ubuntu 16.04 and stack 1.1.2.

--
You received this message because you are subscribed to the Google Groups "liquidhaskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liquidhaskel...@googlegroups.com.

Denis Shevchenko

unread,
Nov 18, 2016, 3:14:42 PM11/18/16
to liquidhaskell, shev....@gmail.com, nva...@cs.ucsd.edu, jh...@cs.ucsd.edu
Ok, Ranjit, thank you for help!
Reply all
Reply to author
Forward
0 new messages