Coder Social home page Coder Social logo

hesh's People

Contributors

jekor avatar juhp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hesh's Issues

scripts named after packages clash

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.

Provide better parse error results

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.

fails to build with ghc-8.0.2 and hackage-db-2.0

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

Recover from stale/invalid sandboxes

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.

Add constraints to packages.

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.

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.