Coder Social home page Coder Social logo

norfairking / template-optparse Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 0.0 46 KB

Template Argument, Option, Environment, Configuration parsing code for Haskell

Home Page: https://template.cs-syd.eu/template/NorfairKing/template-optparse

License: Other

Haskell 84.61% Nix 15.39%
haskell template optparse

template-optparse's Introduction

Optparse Template

This is a template implementation of commands, flags, options, environment variable and configuration file parsing according to best practices.

License

This template is not free to use. See https://template.cs-syd.eu/template/NorfairKing/template-optparse for more information.

Copyright (c) 2020-2023 Tom Sydney Kerckhove.

All Rights Reserved.

Instructions

You can build this template code using stack build according to the provided stack.yaml file. You can also use cabal if you prefer, as long as you can get the appropriate dependencies in place.

To use this template, first choose whether your program will use one command or more commands. For the multi-command version, use the src/OptParse.hs and test/OptParseSpec.hs files. Otherwise, use the src/OptParseOneCommand.hs and test/OptParseOneCommandSpec.hs files. Copy the modules into your project and follow instructions inside.

You can use template-filler to copy the template into your project, like this:

template-filler --source /path/to/the/OptParse.hs --destination /path/to/your/homeless/shelter/OptParse.hs --find FooBar --replace HomelessShelter

Run stack haddock to read the instructions in haddock form. Otherwise, continue reading in the source and the tests.

template-optparse's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.