hakaru icon indicating copy to clipboard operation
hakaru copied to clipboard

Error in installing

Open PoorvaGarg opened this issue 2 years ago • 11 comments

I am trying to install hakaru using the steps described on the link: https://hakaru-dev.github.io/intro/installation/ I am facing the following issue

error:
        Not in scope: data constructor ‘ReplOpts’
        |
    134 |         $ evalReplOpts $ ReplOpts

hakaru/haskell/Language/Hakaru/Repl.hs:135:12: error:
        Not in scope: ‘banner’
        Perhaps you meant ‘binder’ (imported from Language.Hakaru.Syntax.ABT)
        |
    135 |          { banner           = const (pure ">>> ")
        |            ^^^^^^

Any help for resolving this would be appreciated

PoorvaGarg avatar Mar 16 '22 17:03 PoorvaGarg

What version of Haskell are you using?

JacquesCarette avatar Mar 16 '22 17:03 JacquesCarette

I am using GHC 8.6.5

PoorvaGarg avatar Mar 16 '22 17:03 PoorvaGarg

I actually suspect this is due to us having too loose bounds on the version of repline we install. @PoorvaGarg can you say which version of repline cabal is giving you?

zaxtax avatar Mar 17 '22 12:03 zaxtax

I am using repline 0.4.0.0

PoorvaGarg avatar Mar 17 '22 16:03 PoorvaGarg

Alright, let me investigate this and follow-up

zaxtax avatar Mar 17 '22 19:03 zaxtax

Oh @PoorvaGarg I forgot to ask. Did you use the stack or cabal instructions?

zaxtax avatar Mar 21 '22 13:03 zaxtax

I used stack instructions

PoorvaGarg avatar Mar 21 '22 15:03 PoorvaGarg

Ok, I think this is due to the stack lts release in our config not having the latest version of repline. I got the following warning:

Downloaded ghc-tinfo6-8.6.4.
rts-1.0: Warning: .:464:1: The field "hugs-options" is deprecated. hugs isn't supported anymore Installed GHC.
WARNING: Ignoring hakaru's bounds on repline (>=0.4); using repline-0.2.0.0.

I just bumped stack.yaml to use the latest 8.x GHC release. Hopefully, it works now for you.

zaxtax avatar Mar 21 '22 16:03 zaxtax

@PoorvaGarg Did that fix things?

zaxtax avatar Mar 23 '22 21:03 zaxtax

This did not work for me. I got the following output to stack install

Downloading lts-18.28 build plan ...
RedownloadInvalidResponse Request {
  host                 = "raw.githubusercontent.com"
  port                 = 443
  secure               = True
  requestHeaders       = []
  path                 = "/fpco/lts-haskell/master//lts-18.28.yaml"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}

PoorvaGarg avatar Mar 24 '22 03:03 PoorvaGarg

@PoorvaGarg I think you tried to install this while Github was itself not working well. Did you try again later?

zaxtax avatar Mar 30 '22 15:03 zaxtax