Code Monkey home page Code Monkey logo

hpack-template's Introduction

hpack-template

A stack template for an executable, libary, and test-suite using hpack's package.yaml.

The test-suite is built using tasty and uses HUnit for unit tests and hedgehog for property tests. GitHub Actions are included to build the project with the latest Stackage LTS, Stackage Nightly, & the last 3 version of GHC.

To start a new project with this template, run:

stack new <project-name> https://raw.githubusercontent.com/prikhi/hpack-template/master/hpack.hsfiles

The hpack-lib.hsfiles is similar but geared towards libraries instead of applications. It does not include an executable section, modifies the compiler flags to support GHC versions under 8.0, lower the bounds of the base package, includes the base-compat-batteries package to reduce the CPP macros necesary for supporting multiple GHC versions, & uses GitHub Actions to test multiple Stackage LTSes and GHC versions.

stack new <project-name> https://raw.githubusercontent.com/prikhi/hpack-template/master/hpack-lib.hsfiles

Generation

The *.hsfiles are generated with stack-templatizer using the files in the hpack & hpack-lib directories.

Install the templatizer with stack install --resolver nightly stack-templatizer, then run stack-templatizer hpack & stack-templatizer hpack-lib to regenerate the template files.

LICENSE

BSD-3

hpack-template's People

Contributors

prikhi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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