Skip to content

Instantly share code, notes, and snippets.

@ad-si
Created February 21, 2019 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ad-si/c53769565969173d3b2539d15a291989 to your computer and use it in GitHub Desktop.
Save ad-si/c53769565969173d3b2539d15a291989 to your computer and use it in GitHub Desktop.
Adrian's Stack Template
{-# START_FILE package.yaml #-}
name: {{name}}
version: 0.1.0.0
synopsis:
description:
homepage: https://github.com/{{github-username}}{{^github-username}}githubuser{{/github-username}}/{{name}}#readme
license: AGPL-3.0-or-later
author: {{author-name}}{{^author-name}}Author name here{{/author-name}}
maintainer: {{author-email}}{{^author-email}}example@example.com{{/author-email}}
copyright: {{copyright}}{{^copyright}}{{year}}{{^year}}2019{{/year}} {{author-name}}{{^author-name}}Author name here{{/author-name}}{{/copyright}}
category: {{category}}{{^category}}Web{{/category}}
extra-source-files:
- readme.md
dependencies:
- base >= 4.7 && < 5
executables:
{{name}}:
source-dirs: source
main: Main.hs
{-# START_FILE Setup.hs #-}
import Distribution.Simple
main = defaultMain
{-# START_FILE source/Main.hs #-}
module Main where
main :: IO ()
main = do
putStrLn "Hello world!"
{-# START_FILE readme.md #-}
# {{name}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment