Created
March 22, 2016 16:22
-
-
Save moodmosaic/12ebde1493d8cc400a0a to your computer and use it in GitHub Desktop.
Stack project for building https://gist.github.com/ploeh/c999e2ae2248bd44d775
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Booking | |
version: 0.1.0.0 | |
synopsis: Handling a reservation request in Haskell. Proof of concept | |
description: Please see README.md | |
homepage: https://gist.github.com/ploeh/c999e2ae2248bd44d775 | |
license: MIT | |
license-file: LICENSE | |
author: Mark Seemann | |
maintainer: [email protected] | |
copyright: 2016 Mark Seemann | |
category: Web | |
build-type: Simple | |
cabal-version: >=1.10 | |
library | |
hs-source-dirs: src | |
exposed-modules: ApiModel, App, DB | |
default-language: Haskell2010 | |
build-depends: base, directory, filepath, time, mtl, either |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Add license here.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Distribution.Simple | |
main = defaultMain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For more information, see: https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md | |
# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2) | |
resolver: lts-3.8 | |
# Local packages, usually specified by relative directory name | |
packages: | |
- '.' | |
# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3) | |
extra-deps: [] | |
# Override default flag values for local packages and extra-deps | |
flags: {} | |
# Extra package databases containing global packages | |
extra-package-dbs: [] | |
# Control whether we use the GHC we find on the path | |
# system-ghc: true | |
# Require a specific version of stack, using version ranges | |
# require-stack-version: -any # Default | |
# require-stack-version: >= 0.1.4.0 | |
# Override the architecture used by stack, especially useful on Windows | |
# arch: i386 | |
# arch: x86_64 | |
# Extra directories used by stack for building | |
# extra-include-dirs: [/path/to/dir] | |
# extra-lib-dirs: [/path/to/dir] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure to put the modules from here to a folder called
src
— or adjust theBooking.cabal
file accordingly.