Code Monkey home page Code Monkey logo

diagrams-ghci's Introduction

diagrams-ghci

Installation

Until diagrams-0.7 and my toy-* libraries are published to hackage, this repository requires the HEAD versions of those repositories. The easiest way to get these dependencies is using cabal-meta with diagrams-sources and toy-sources.

Usage

Run dist/buid/ghcdi/ghcdi in the root directory. Then, write a file with the extension .hse, for "Haskell Expression" to the same directory. This change will be detected, and the expression will be rendered via diagrams.

Notes

"src/ActiveHs/Simple.hs" is from ActiveHs by Péter Diviánszky. This is included because you can't use an application as a library!

diagrams-ghci's People

Contributors

mgsloan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

diagrams-ghci's Issues

awesome project :)

was fun chatting at hackphi

question: are you use Hint or the ghc api for the interpreter directly?
(the cabal file makes me think later, but the module imports in the code look like the former)

Installation troubles

Sorry to bother you about this but I'm having lots of trouble installing.
Two different problems in fact.
cabal install fails on resolving the marked-text dependency, in fact, Google can't find a trace of a haskell library with that kind of name.

cabal: Could not resolve dependencies:
trying: diagrams-ghci-0.1.0 (user goal)
next goal: marked-text (dependency of diagrams-ghci-0.1.0)

But even if that would succeed I yet haven't been able to install the gtk-toy-diagrams dependency:

cabal: Could not resolve dependencies:
trying: gtk-toy-diagrams-0.2.0 (user goal)
next goal: base (dependency of gtk-toy-diagrams-0.2.0)
rejecting: base-3.0.3.2, 3.0.3.1 (global constraint requires installed
instance)
trying: base-4.5.0.0/installed-40b...
trying: diagrams-core-0.6/installed-a87... (dependency of
gtk-toy-diagrams-0.2.0)
next goal: diagrams-cairo (dependency of gtk-toy-diagrams-0.2.0)
rejecting: diagrams-cairo-0.5.0.2, 0.5.0.1, 0.5 (conflict:
diagrams-core==0.6/installed-a87..., diagrams-cairo => diagrams-core>=0.5 &&
<0.6)
rejecting: diagrams-cairo-0.4 (conflict: base==4.5.0.0/installed-40b...,
diagrams-cairo => base>=4.2 && <4.5)
rejecting: diagrams-cairo-0.3, 0.2, 0.1.2, 0.1.1, 0.1 (conflict:
base==4.5.0.0/installed-40b..., diagrams-cairo => base>=4.2 && <4.4

I'm on Ubuntu using ghc 7.4. (the latest available in the Ubuntu repository)

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.