evmar / c-repl Goto Github PK
View Code? Open in Web Editor NEWa C read-eval-print loop (abandoned)
Home Page: http://neugierig.org/software/c-repl/
License: BSD 3-Clause "New" or "Revised" License
a C read-eval-print loop (abandoned)
Home Page: http://neugierig.org/software/c-repl/
License: BSD 3-Clause "New" or "Revised" License
First of all, I want to thank you for the awesome work. It's a bummer this is discontinued.
Anyways, maybe someone is also having the same problem when cabal configure
is called:
Warning: The configure command is a part of the legacy v1 style of cabal
usage.
Please switch to using either the new project style and the new-configure
command or the legacy v1-configure alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.
For more information, see: https://wiki.haskell.org/Cabal/NewBuild
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
[__0] trying: c-repl-0.1 (user goal)
[__1] unknown package: readline (dependency of c-repl)
[__1] fail (backjumping, conflict set: c-repl, readline)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: c-repl, readline
Trying configure anyway.
[1 of 1] Compiling Main ( dist/setup/setup.hs, dist/setup/Main.o )
dist/setup/setup.hs:1:1: error:
Could not find module ‘Prelude’
There are files missing in the ‘base-4.12.0.0’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
1 | #! /usr/bin/env runhaskell
| ^
dist/setup/setup.hs:10:3: error:
Could not find module ‘Control.Applicative’
There are files missing in the ‘base-4.12.0.0’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
10 | import Control.Applicative
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
dist/setup/setup.hs:11:3: error:
Could not find module ‘Distribution.Simple’
There are files missing in the ‘Cabal-2.4.0.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
11 | import Distribution.Simple
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
dist/setup/setup.hs:12:3: error:
Could not find module ‘Distribution.PackageDescription’
There are files missing in the ‘Cabal-2.4.0.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
12 | import Distribution.PackageDescription
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dist/setup/setup.hs:13:3: error:
Could not find module ‘Distribution.Simple.LocalBuildInfo’
There are files missing in the ‘Cabal-2.4.0.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
13 | import Distribution.Simple.LocalBuildInfo
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dist/setup/setup.hs:14:3: error:
Could not find module ‘Distribution.Simple.Setup’
There are files missing in the ‘Cabal-2.4.0.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
14 | import Distribution.Simple.Setup
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dist/setup/setup.hs:15:3: error:
Could not find module ‘Distribution.Simple.Program’
There are files missing in the ‘Cabal-2.4.0.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
15 | import Distribution.Simple.Program
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dist/setup/setup.hs:16:3: error:
Could not find module ‘Distribution.Simple.Utils’
There are files missing in the ‘Cabal-2.4.0.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
16 | import Distribution.Simple.Utils
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dist/setup/setup.hs:17:3: error:
Could not find module ‘Distribution.Verbosity’
There are files missing in the ‘Cabal-2.4.0.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
17 | import Distribution.Verbosity
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dist/setup/setup.hs:18:3: error:
Could not find module ‘System.FilePath’
There are files missing in the ‘filepath-1.4.2.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
18 | import System.FilePath ((</>))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dist/setup/setup.hs:19:3: error:
Could not find module ‘System.Posix.Files’
There are files missing in the ‘unix-2.7.2.2’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
19 | import System.Posix.Files
| ^^^^^^^^^^^^^^^^^^^^^^^^^
I wonder if there's an easy fix?
Hi, I'd love to try c-repl, but depending on Hexpat 0.9 stops me from trying.
I would happily install hexpat 0.9 via Cabal, but It fails with the following:
$ cabal install hexpat-0.9
Resolving dependencies...
Configuring hexpat-0.9...
Preprocessing library hexpat-0.9...
Building hexpat-0.9...
[1 of 5] Compiling Text.XML.Expat.IO ( Text/XML/Expat/IO.hs, dist/build/Text/XML/Expat/IO.o )
Text/XML/Expat/IO.hs:211:5:
`rnf' is not a (visible) method of class `NFData'
Text/XML/Expat/IO.hs:211:35: Not in scope: `rnf'
Text/XML/Expat/IO.hs:223:5:
`rnf' is not a (visible) method of class `NFData'
Text/XML/Expat/IO.hs:223:46: Not in scope: `rnf'
cabal: Error: some packages failed to install:
hexpat-0.9 failed during the building phase. The exception was:
ExitFailure 1
I could use Hexpat versions 0.14
and above, but they seem to have a different API and have lost the parseTree'
method of Text.XML.Expat.Tree
in favour of parse'
, so that when trying to compile c-repl, I get the following:
$ cabal install
Resolving dependencies...
Configuring c-repl-0.1...
Preprocessing executables for c-repl-0.1...
Building c-repl-0.1...
[ 2 of 5] Compiling GCCXML ( GCCXML.hs, dist/build/c-repl/c-repl-tmp/GCCXML.o )
GCCXML.hs:123:18: Not in scope: `Expat.parseTree''
cabal: Error: some packages failed to install:
c-repl-0.1 failed during the building phase. The exception was:
ExitFailure 1
I don't speak Haskell, unfortunately, and the API has changed enough for me to be unable to fix it and propose a pull request.
While I will eventually get around to fixing my inability to speak Haskell, I figured I'd raise this here in the meantime :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.