Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to include the library in a project #27

Open
Abhiroop opened this issue Aug 8, 2019 · 2 comments
Open

Unable to include the library in a project #27

Abhiroop opened this issue Aug 8, 2019 · 2 comments

Comments

@Abhiroop
Copy link

Abhiroop commented Aug 8, 2019

I have a stack project which has the resolver lts-13.14. When I include llvm-hs-quote through the stack.yaml the build throws the following error:

    Preprocessing library for llvm-hs-quote-0.1.0.0..
    Building library for llvm-hs-quote-0.1.0.0..
    [2 of 8] Compiling LLVM.Quote.Parser.Tokens ( src/LLVM/Quote/Parser/Tokens.hs, .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/LLVM/Quote/Parser/Tokens.o )

    /Users/abhiroopsarkar/Haskell/hailstorm/.stack-work/downloaded/kbUU6haXgO1k/src/LLVM/Quote/Parser/Tokens.hs:483:10: error:
        Not in scope: type constructor or class ‘Pretty’
        |
    483 | instance Pretty Token where
        |          ^^^^^^

I am not sure why this error came up. I separately cloned the library and tried building it and it works fine. I have tried including the mainland-pretty package in my package.yaml file as well (which contains the Pretty typeclass) which I don't think is the problem and this doesn't solve the problem as well.

I am not sure could this possibly be related to some upper bound issue or using some specific version of mainland-pretty?

@Abhiroop
Copy link
Author

Abhiroop commented Aug 9, 2019

I figured out the issue. It is with the mainland-pretty package which modified its directory structure and added a new module. This package depends on a particular version (0.2.7.1) of mainland-pretty. I patched the package to compile with the latest mainland-pretty on stackage here:

Abhiroop@788d6f6

However this additionally works with a fixed version of llvm-hs-pure which is not compatible with lts-13.14's llvm-hs-pure. Is there any plan to support the recent llvm-hs-pure? (I am working on LLVM 8)

@cocreature
Copy link
Member

Hi!
We’d be happy to accept a PR to upgrade to newer versions of llvm-hs-pure and mainland-pretty. At this point, this package is more of an experiment into getting the old quoting package for llvm-general to compile with llvm-hs and hasn’t seen much love beyond that so things are not in the best shape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants