Giter VIP home page Giter VIP logo

mafia's Introduction

mafia

Provides protection against cabal swindling, robbing, injuring or sabotaging people with chopsticks.

mafia

Overview

Mafia is a light weight but opinionated wrapper around Cabal that makes working on Haskell projects fun and easy.

The central idea is that upon cloning a project, you should only have to run mafia build to get up and running for development. This will pull down any git submodules, create a cabal sandbox, install dependencies and then build everything, tests and benchmarks included.

Cabal packages in the same git repository, or in git submodules, are discovered automatically and made available as source dependencies. This is particularly useful if you have many internal dependencies that are not published to Hackage. It allows for development of a package and its dependencies all at once, without having to publish intermediate builds of libraries and without having to resort to a monorepo.

All dependencies are cached globally in $HOME/.mafia/packages using a nix-like hashing system so that for a given set of transitive dependencies, a package is only ever built once. Source dependencies are also cached, using their dependencies and source code as the hash. This is critical for Haskell development at scale. At Ambiata we have around 150 Haskell packages which are being developed at a rapid pace, so it's crucial that we don't need to think about curating blessed sets of packages that we can cache as a single snapshot.

System configuration

Mafia expects both GHC and Cabal to be installed and on the PATH.

Follow the guides below to configure your system correctly:

mafia's People

Contributors

jacobstanley avatar charleso avatar amosr avatar olorin avatar markhibberd avatar erikd-ambiata avatar nhibberd avatar michaelneale avatar etorreborre avatar domdere avatar thumphries avatar damncabbage avatar erikd avatar huwcampbell avatar moodmosaic avatar tmcgilchrist 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.