jekor / hesh Goto Github PK
View Code? Open in Web Editor NEWHaskell Extensible Shell
License: MIT License
Haskell Extensible Shell
License: MIT License
...otherwise it's confusing (did hesh or my script just hang?).
Due to the way that the cabal file is based on the script name, if it shares the name of a package it can create a collision during configuration. A fix would be to give all hesh scripts a fixed/random name and just set the executable name to match the script name.
hesh/Main.hs:30:33: error:
Module ‘Distribution.Hackage.DB’ does not export ‘readHackage’
hesh/Main.hs:30:46: error:
Module ‘Distribution.Hackage.DB’ does not export ‘hackagePath’
hesh/Main.hs:33:30: error:
Module ‘Distribution.Version’ does not export ‘versionBranch’
cabal: Leaving directory '/home/petersen/tmp/cabal-tmp-25299/hesh-1.11.0'
Seems to build okay with haskage-db-1.22 and Data.Version
Multiple packages might share module names. Until there is a more sophisticated way to detect package dependencies, we should provide a method for specifying which package is desired.
Example:
/tmp/hesh-a6e68aa65d00a54cfc4c2c09be015560/.cabal-sandbox/x86_64-osx-ghc-7.8.3-packages.conf.d/package.cache: openBinaryFile: does not exist (No such file or directory)
The simple thing is to wipe the directory and try again automatically.
Not only is the filename not shown when it could be determined (.hs), but the user can't see what their code is being transformed into when it fails to parse.
The current method of finding packages is unsophisticated and likely to break in many cases, mainly because it doesn't add constraints to the packages in the cabal file. Additionally, the search for valid versions is not currently 100% correct.
For example, if you use Prelude.read
somewhere, it will result in import qualified Prelude
.
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.