GithubHelp home page GithubHelp logo

maximilianalgehed / genericlibrary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from graceful-project/grace

0.0 2.0 0.0 2.63 MB

The CFP DSL for the GenericLibrary

License: BSD 3-Clause "New" or "Revised" License

Haskell 100.00%

genericlibrary's Introduction

GRACeFUL generic library

A DSL for GRACeFUL components.

Installing

GenericLibrary requires MiniZinc. We provide installation instructions for Linux and macOS.

Linux

Patrik has provided an install script for Linux.

macOS

  1. Download and install the complete MiniZinc distribution from the MiniZinc page.

  2. The MiniZinc binaries will now be located under /Applications/MiniZincIDE.app/Contents/Resources. Add this directory to your path, like so:

    export PATH='$PATH:/Applications/MiniZincIDE.app/Contents/Resources'

Running a constraint program

Using sandboxes

Create a new sandbox and install the required dependencies.

cabal sandbox init
cabal install --dependencies-only

Build and execute using

cabal build
cabal run examples

Using stack

Stack will automatically take care of dependencies. Build and execute using

stack build
stack exec examples

Copy executables to ~/.local/bin (put them on PATH) with

stack install

The executables will then be available from the command line. For example

example

Testing using stack

Run entire test suite with

stack test

Load test modules in ghci by

stack ghci GenericLibrary:test:test

Run test suite for a single module with

stack runghc test/TestModule.hs

This assumes there is a main function in TestModule.hs.

Generate project documentation

Run haddock to generate project documentation

stack haddock --haddock-arguments --hyperlink-source

To open the documentation directly append --open.

Find the path to the documentation by running

stack path --local-doc-root

genericlibrary's People

Contributors

bjonor avatar maximilianalgehed avatar oskarabrahamsson avatar patrikja avatar solrun avatar

Watchers

 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.