Meta tags:
description= A program for developing Haskell projects.
;
author= Stack contributors;
Headings (most frequently used words):
the, stack, new, command, project, templates, examples,
Text of the page (most frequently used words):
the (49), stack (48), project (46), #template (26), new (23), with (22), for (21), and (21), package (17), use (12), file (11), ghc (11), create (9), default (9), initialise (8), templates (8), github (8), init (7), repository (6), bitbucket (6), name (6), configuration (6), username (5), one (5), specified (5), key (5), not (4), hsfiles (4), directory (4), codeberg (4), gitlab (4), can (4), snapshot (4), option (4), version (4), more (4), build (4), commands (4), contributors (3), simple (3), example (3), bare (3), examples (3), service (3), names (3), command (3), flags (3), flag (3), packages (3), value (3), acceptable (3), note (3), alphanumeric (3), character (3), other (3), cabal (3), get (3), involved (3), files (3), integration (3), building (3), topics (3), configure (3), getting (3), started (3), does (2), used (2), yaml (2), local (2), https (2), com (2), provided (2), yesodweb (2), mysql (2), rio (2), current (2), extension (2), named (2), initialised (2), will (2), arguments (2), directories (2), are (2), omit (2), force (2), ignore (2), subdirs (2), param (2), from (2), wired (2), haskell (2), integer (2), that (2), letter (2), categories (2), word (2), such (2), words (2), pass (2), skip (2), using (2), table (2), contents (2), glossary (2), faq (2), how (2), works (2), upgrading (2), maintainers (2), code (2), non (2), docker (2), script (2), location (2), environment (2), options (2), specific (2), projects (2), setting (2), welcome (2), made, material, mkdocs, copyright, 2015, 2025, back, top, which, hpack, could, subsequently, path_to_template_file, path_to_template, commercialhaskell, where, have, need, located, url, system, line, try, further, information, see, documentation, specifying, these, ignored, passed, specifies, pair, populate, multiple, times, constrained, single, renamed, differ, its, case, hackage, limited, treats, following, rts, interactive, gmp, internal, prim, bignum, base, decline, accept, supported, unicode, uppercase, lowercase, titlecase, modifier, number, decimal, comprises, two, separated, hyphen, minus, cannot, comprised, only, characters, initialisation, created, after, creates, package_name, template_name, dir, history, resources, overview, signing, self, hosted, runners, haskellstack, org, zip, msys2, add, maintainer, team, process, releases, scheme, dev, containers, contributor, guide, lock, azure, travis, shell, auto, completion, developing, windows, visual, studio, editor, debugging, source, standard, initialization, nix, interpreter, specification, work, root, customisation, scripts, global, include, directive, variables, upload, upgrade, update, unpack, uninstall, test, setup, sdist, runhaskell, runghc, run, repl, query, purge, path, list, install, ide, hpc, hoogle, haddock, ghci, exec, eval, dot, config, clean, bench, conclusion, interactively, executing, locations, multi, targets, synonyms, installed, databases, existing, your, description, hello, world, initializing, search, content,
Text of the page (random words):
new stack skip to content stack new initializing search github welcome setting up getting started commands configure topics get involved faq glossary more stack github welcome setting up getting started getting started 1 a hello world example 2 package description 3 project configuration 4 building your project 5 building existing projects 6 installed package databases 7 stack build synonyms 8 stack build targets 9 multi package projects 10 cabal flags and ghc options 11 locations used by stack 12 executing commands 13 using ghc interactively 14 stack configuration 15 in conclusion commands commands bench build clean config dot docker eval exec ghc ghci haddock hoogle hpc ide init install list ls new new table of contents project templates examples path purge query repl run runghc runhaskell script sdist setup templates test uninstall unpack update upgrade upload configure configure environment variables configuration files configuration files project specific configuration non project specific configuration the include directive global flags and options customisation scripts topics topics stack root stack work directories stack environment snapshot location package location snapshot specification stack yaml vs a cabal file script interpreter docker integration nix integration non standard project initialization building ghc from source debugging editor integration stack and visual studio code developing on windows shell auto completion ci travis ci azure ci lock files haskell and c code get involved get involved contributors contributors contributor s guide dev containers maintainers maintainers version scheme releases maintainer team process add ghc version upgrading msys2 upgrading 7 zip haskellstack org self hosted runners signing key how stack works how stack works build overview faq glossary more more other resources version history table of contents project templates examples the stack new command stack new package_name bare no init template_name p param key value dir s omit packages force ignore subdirs stack new creates a new project using a project template by default the project is created in a new directory named after the package pass the bare flag to create the project in the current directory the project is initialised for use with stack pass the no init flag to skip such initialisation and the project template is the one specified by the default template option a package name acceptable to cabal comprises an alphanumeric word or two or more such words with the words separated by a hyphen minus character a word cannot be comprised only of the characters 0 to 9 an alphanumeric character is one in one of the unicode letter categories lu uppercase ll lowercase lt titlecase lm modifier or lo other or number categories nd decimal nl letter or no other note stack new will decline to accept a package name that is a ghc wired in package for a version of ghc that is supported by stack stack treats the following as the names of wired in packages base ghc bignum ghc prim ghc ghc internal integer gmp integer simple interactive rts and template haskell note in the case of hackage and acceptable package names an alphanumeric character is limited to one of a to z a to z and 0 to 9 note the name of a project is not constrained to be an acceptable package name a single package project can be renamed to differ from the name of its package the param key value option specifies a key value pair to populate a key in a template the option can be specified multiple times the arguments specifying directories and the ignore subdirs force and omit packages flags are as for the stack init command these arguments are ignored if the no init flag is passed if a snapshot is specified at the command line and the project is initialised for use with stack stack new will try to use it for further information see the documentation for the snapshot option project templates a project template file can be located in a repository named stack templates on github gitlab bitbucket or codeberg at a url or on the local file system project template file names have the extension hsfiles the extension does not need to be specified with stack new a project template file my template hsfiles in a repository username stack templates on github gitlab bitbucket or codeberg can be specified with stack new as service username my template where service is one of github for github gitlab for gitlab bitbucket for bitbucket or codeberg for codeberg the default service is github the default username is commercialhaskell and the default project template name is new template examples create a project for package my project in new directory my project with the default project template file and initialise it for use with stack stack new my project create a project for package my package in the current directory with the default project template file and initialise it for use with stack stack new my package bare create a project with the rio project template at the default repository and initialise it for use with stack stack new my project rio create a project with the mysql project template provided by the yesodweb stack templates repository on github and initialise it for use with stack stack new my project yesodweb mysql create a project with the my template project template provided by the username stack templates repository on bitbucket and initialise it for use with stack stack new my project bitbucket username my template create a project with the my template hsfiles project template file at https example com and initialise it for use with stack stack new my project https example com my template create a project with the local project template file path_to_template my template hsfiles and initialise it for use with stack stack new my project path_to_template_file my template create a project with the simple project template file at the default repository which does not use hpack and a package yaml file and do not initialise it for use with stack stack init could be used subsequently stack new my project no init simple back to top copyright c 2015 2025 stack contributors made with material for mkdocs
|