Git Product home page Git Product logo

my-template-haskell's Introduction

Template for Haskell + Nix projects.

Nix-based Haskell template containing ghc, cabal, hoogle, ormolu, and haskell-language-server.

Usage

Clone/copy this repo to the intended package location, and run the wizard.

git clone https://github.com/jonascarpay/template-haskell <my-project>
cd <my-project>
./wizard.sh

You can enter the Nix shell with nix develop. Running cabal from inside this shell should use the packages that have been pre-built by Nix.

You can also build your project entirely with nix using nix build.

CI

Default CI consists of a Stack matrix, Cabal matrix, and Nix build. Don't forget to look at .github/workflows/CI.yaml and tweak this to your project.

Deprecations

haskell.nix

This template previously used IOHK's haskell.nix. Since I initially released this template and the accompanying blog post, the vanilla Nix Haskell infrastructure has become significantly easier to use, and I now recommend it for most users. I have decided to stop maintaining the haskell.nix branch.

Non-flake interface

Since both I and all users I've talked to never use the non-flakes version anymore, I have decided to drop support for it. So, template-haskell is now flakes-only.

Don't worry if you have not used flakes before, the practical implications of this change are minimal. After enabling flakes support, just use nix build and nix develop instead of nix-build and nix-shell, respectively.

my-template-haskell's People

Contributors

jonascarpay avatar weissp 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.