Giter Site home page Giter Site logo

iarekk / haskell-anywhere Goto Github PK

View Code? Open in Web Editor NEW

This project forked from piotrjustyna/haskell-anywhere

0.0 1.0 0.0 2 KB

Use Haskell on any machine. Well, provided you have Docker installed.

Batchfile 27.73% Shell 59.69% Dockerfile 12.58%

haskell-anywhere's Introduction

haskell anywhere

This project is aimed at people who don't want to waste time installing the haskell development environment locally but to delegate everything to docker.

base image

I am going to use the haskell image, version 8.6.3 in this repository.

ghci

To simply play with GHCI, run the following:

  • ghci.bat - windows (I used .bat and not .sh extension to avoid problems with the -it flag of docker run). Powershell recommended.
  • ghci.sh - *nix.

examples

GHCI container with a shared volume:

C:\Users\piotr_justyna\Documents\github\haskell-anywhere\ghci\ghci.bat C:\Users\piotr_justyna\Documents\github\programming-in-haskell

GHCI container with no shared volume:

C:\Users\piotr_justyna\Documents\github\haskell-anywhere\ghci\ghci.bat

stack

To compile bigger projects, use stack scripts:

  • stack.sh - platform-independent

This time there is no difference between the two as there is no interactive mode required. One script will do. What happens here is we're building an image containing a fully functional installation of stack. Your code gets copied into the image and built during the image build process. While it works very quite neatly, it is very slow. Good for PoC's, but not for much else.

To use, simply drop:

  • docker.sh
  • Dockerfile

into your project directory and adapt the dockerfile as needed - the only required change is the executable name, everything else is optional.

examples

In your project directory:

./docker.sh

haskell-anywhere's People

Contributors

piotrjustyna avatar

Watchers

James Cloos avatar

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.