From f414bdd599a6877fc0f97872cb36a7c8b0c89a0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 20 Oct 2018 17:19:06 +0200 Subject: [PATCH] Add haskell stack config --- config.yaml | 4 ++++ dotfiles/programming/haskell/stack/config.yaml | 14 ++++++++++++++ .../haskell/stack/global-project/README.txt | 2 ++ .../haskell/stack/global-project/stack.yaml | 10 ++++++++++ 4 files changed, 30 insertions(+) create mode 100644 dotfiles/programming/haskell/stack/config.yaml create mode 100644 dotfiles/programming/haskell/stack/global-project/README.txt create mode 100644 dotfiles/programming/haskell/stack/global-project/stack.yaml diff --git a/config.yaml b/config.yaml index b0ae702..3f4fcb0 100644 --- a/config.yaml +++ b/config.yaml @@ -62,6 +62,9 @@ dotfiles: prog_haskell_ghci: dst: ~/.ghc/ghci.conf src: programming/haskell/ghci.conf + prog_haskell_stack: + dst: ~/.local/share/stack + src: programming/haskell/stack prog_nodejs_npm: dst: ~/.config/npm/npmrc src: programming/nodejs/npmrc @@ -132,6 +135,7 @@ profiles: _prog_haskell: dotfiles: - prog_haskell_ghci + - prog_haskell_stack _prog_nodejs: dotfiles: - prog_nodejs_npm diff --git a/dotfiles/programming/haskell/stack/config.yaml b/dotfiles/programming/haskell/stack/config.yaml new file mode 100644 index 0000000..5828c8d --- /dev/null +++ b/dotfiles/programming/haskell/stack/config.yaml @@ -0,0 +1,14 @@ +# This file contains default non-project-specific settings for 'stack', used +# in all projects. For more information about stack's configuration, see +# http://docs.haskellstack.org/en/stable/yaml_configuration/ + +# The following parameters are used by "stack new" to automatically fill fields +# in the cabal config. We recommend uncommenting them and filling them out if +# you intend to use 'stack new'. +# See https://docs.haskellstack.org/en/stable/yaml_configuration/#templates +templates: + params: +# author-name: +# author-email: +# copyright: +# github-username: \ No newline at end of file diff --git a/dotfiles/programming/haskell/stack/global-project/README.txt b/dotfiles/programming/haskell/stack/global-project/README.txt new file mode 100644 index 0000000..646fa5f --- /dev/null +++ b/dotfiles/programming/haskell/stack/global-project/README.txt @@ -0,0 +1,2 @@ +This is the implicit global project, which is used only when 'stack' is run +outside of a real project. diff --git a/dotfiles/programming/haskell/stack/global-project/stack.yaml b/dotfiles/programming/haskell/stack/global-project/stack.yaml new file mode 100644 index 0000000..643adf2 --- /dev/null +++ b/dotfiles/programming/haskell/stack/global-project/stack.yaml @@ -0,0 +1,10 @@ +# This is the implicit global project's config file, which is only used when +# 'stack' is run outside of a real project. Settings here do _not_ act as +# defaults for all projects. To change stack's default settings, edit +# '/home/ismael/.local/share/stack/config.yaml' instead. +# +# For more information about stack's configuration, see +# http://docs.haskellstack.org/en/stable/yaml_configuration/ +# +packages: [] +resolver: lts-12.11 -- 2.41.0