Giter Club home page Giter Club logo

Comments (18)

sternenseemann avatar sternenseemann commented on June 25, 2024

Can you paste the error message here? That would be very helpful. Probably it's related to your old cabal version.

from haskell-ricochet.

photm5 avatar photm5 commented on June 25, 2024

What version of the process package do you have? (I think we need at least 1.2.0.0.) You can find that out by running ghc-pkg latest process.

from haskell-ricochet.

fkarg avatar fkarg commented on June 25, 2024

well, apparently it's 1.1.0.2.
this still doesn't explain Monoid being out of scope? Either way we should fix it to run on other systems too.

from haskell-ricochet.

photm5 avatar photm5 commented on June 25, 2024

Still, could you please paste the error message related to Monoid? I guess the process problem will be easy to fix, but I don’t quite understand what’s the issue with Monoid.

from haskell-ricochet.

fkarg avatar fkarg commented on June 25, 2024

Ah, now I got you:
When changing 'callProcess' to 'runProcess', I get the following error:

[1 of 1] Compiling Main ( Setup.hs, dist/setup/Main.o )

Setup.hs:15:84: Not in scope: `mempty'

Setup.hs:21:23:
Not in scope: type constructor or class Monoid' Perhaps you meantMonad' (imported from Prelude)

Setup.hs:24:22:
Not in scope: type constructor or class Monoid' Perhaps you meantMonad' (imported from Prelude)

from haskell-ricochet.

fkarg avatar fkarg commented on June 25, 2024

mempty is another questionable one. the only module imported completely is 'Distribution.Simple', but it certainly isn't in the version I have at least

from haskell-ricochet.

sternenseemann avatar sternenseemann commented on June 25, 2024

Can you please check wether it is fixed on build-system-fix?

from haskell-ricochet.

fkarg avatar fkarg commented on June 25, 2024

still whining about 'callProcess'. but leaving this aside, he's complaining about something else now:

Setup.hs:15:63:
    Couldn't match expected type `IO a0'
                with actual type `Maybe FilePath
                                  -> Maybe [(String, String)]
                                  -> Maybe GHC.IO.Handle.Types.Handle
                                  -> Maybe GHC.IO.Handle.Types.Handle
                                  -> Maybe GHC.IO.Handle.Types.Handle
                                  -> IO System.Process.Internals.ProcessHandle'
    In the first argument of `(>>)', namely `runHprotoc'
    In the first argument of `const', namely
      `(runHprotoc >> return mempty)'
    In the first argument of `const', namely
      `(const (runHprotoc >> return mempty))'
Failed, modules loaded: none.

the operator itself is included in the Prelude even, meaning the issue is within runHprotec, which is, due to the unavailability of callProcess probably altered. My guess: it should work with updating the process module (callProcess), gotta figure out how to do it.

from haskell-ricochet.

fkarg avatar fkarg commented on June 25, 2024

Okay, after I found out how to update packages and such, process still got me some issues. when loading in ghci and trying to run it, he complained about two process instances ... working on that one.

another issue: when cabal configure-ing it, cabal insists setup: hprotoc: does not exist, even though I've confirmed its installation.

Another issue I'm fighting with is the lack of easy uninstallation of packages and that I need to go somewhere in a few minutes, meaning I'll have to end it for today.

from haskell-ricochet.

sternenseemann avatar sternenseemann commented on June 25, 2024

Welcome to the cabal hell, dude.

from haskell-ricochet.

photm5 avatar photm5 commented on June 25, 2024

another issue: when cabal configure-ing it, cabal insists setup: hprotoc: does not exist, even though I've confirmed its installation.

Did you put ~/.cabal/bin into your $PATH?

from haskell-ricochet.

sternenseemann avatar sternenseemann commented on June 25, 2024

How does it look right now?

from haskell-ricochet.

fkarg avatar fkarg commented on June 25, 2024

Thing is, it worked. Or rather, it got me another error.

current status:
cabal is unable to build the package due to the bytestring package getting 'shadowed' or sth.
cabal is unable to sandbox due to being one version behind.
cabal is unable of updating, saying it wouldn't find the module System.Directory, exiting the install of Cabal-1.22.4.0 with ExitFailure 1 during the configure step.
gave up after about 3 hours.

(status on my desktop-machine, the one on my laptop is similar)

well, I'll try again another time.

I thought about installing Arch Linux as a base for some time now, and I guess I'll do it after learning Haskell a bit more.

from haskell-ricochet.

sternenseemann avatar sternenseemann commented on June 25, 2024

Rather install NixOS :)

from haskell-ricochet.

froozen avatar froozen commented on June 25, 2024

Can this be closed, as it's something @blueburningcoder will have to sort out by themselves?

from haskell-ricochet.

fkarg avatar fkarg commented on June 25, 2024

Well, guess so. I'll figure a way out at some point (I hope).

from haskell-ricochet.

photm5 avatar photm5 commented on June 25, 2024

Rather install NixOS :)

Nix on itself should work too.

from haskell-ricochet.

sternenseemann avatar sternenseemann commented on June 25, 2024

Reopen this, if the issue still exists. Thank you

from haskell-ricochet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.