Git Product home page Git Product logo

the-pragmatic-haskeller's Introduction

The Pragmatic Haskeller

A collection of "recipes" (no pun intended) to pragmatically get things done in Haskell. We'll build a simple web application for managing recipes. In particular, we'll focus on:

  • How to parse Json files describing recipes

  • How to automatically convert between Json and Bson for storing recipes inside MongoDB

  • Interfacing with an external API

  • A DSL for describing recipes

Follow the tutorials!

I wrote a complete series on "The School of Haskell":

Installation

cd <episode folder>
cabal install

inside each subfolder to install the desired version. You will need the Haskell Platform installed or at least cabal and cabal install.

Avoid Cabal Hell

Consider using hsenv to work inside an isolate environment everytime:

https://github.com/tmhedberg/hsenv.git

Usage is simple: clone the pragmatic project, cd inside it, then:

hsenv
source .hsenv/bin/activate

Et voilà! Now you can install whatever you like without the risk of polluting your global Cabal installation. Is the trick I use myself; I've installed in the global Cabal only barebone stuff, all the rest lives inside a separate isolated environment! If you have cabal hell inside hsenv, simply delete .hsenv and repeat the steps above; you'll have a brand new environment to spoil!

Running each episode

cabal install
pragmatic

To run the "pragmatic" server.

Show me a demo!

Sure! Here we go: http://ec2-107-22-56-237.compute-1.amazonaws.com:8000

the-pragmatic-haskeller's People

Contributors

adinapoli avatar shapr avatar

Watchers

James Cloos avatar Jeremy Weasley 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.