Skip to content

Instantly share code, notes, and snippets.

@aiya000
Created June 14, 2016 12:52
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 aiya000/02d578a484078e7982b01b58228ca785 to your computer and use it in GitHub Desktop.
Save aiya000/02d578a484078e7982b01b58228ca785 to your computer and use it in GitHub Desktop.
Haskell(Stack)でGitHubにあるライブラリを使う方法 ref: http://qiita.com/aiya000/items/4e90aead41e3711a1e54
$ stack new {project-name} {template-name}
name: hs-gorira
version: 0.1.0.0
synopsis: Simple project template from stack
description: Please see README.md
homepage: https://github.com/githubuser/hs-gorira#readme
license: BSD3
license-file: LICENSE
author: aiya000
maintainer: aiya000.develop at gmail.com
copyright: 2016 aiya000
category: Web
build-type: Simple
cabal-version: >=1.10
executable hs-gorira
hs-source-dirs: src
main-is: Main.hs
other-modules: Config
, Control.GoriraMeCab
, Control.GoriraTwitter
, Data.GoriraMeCab
, Data.GoriraTwitter
default-language: Haskell2010
build-depends: base >= 4.7 && < 5
, HTTP
, aeson
, authenticate-oauth
, bytestring
, conduit
, conduit-extra
, connection
, http-client
, http-conduit
, lens-aeson
, mecab
, random-shuffle
, resourcet
, text
, transformers
build-depends: base >= 4.7 && < 5
, (省略)
, mecab
, (省略)
# This file was automatically generated by stack init
# For more information, see: http://docs.haskellstack.org/en/stable/yaml_configuration/
# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
resolver: lts-5.14
# Local packages, usually specified by relative directory name
packages:
- '.'
- location:
git: https://github.com/morishin/hsmecab.git
commit: 2da6677fbd42bb77d3b6e61c02edfeebe248e184
# 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: >= 1.0.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]
# Allow a newer minor version of GHC than the snapshot specifies
# compiler-check: newer-minor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment