From 397c4fed757d201af627636822981e85e84ea572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 2 Nov 2018 17:03:49 +0100 Subject: Validation initiale --- roles/programming/haskell/files/ghci.conf | 2 ++ roles/programming/haskell/files/stack/config.yaml | 14 ++++++++++++++ .../haskell/files/stack/global-project/README.txt | 2 ++ .../haskell/files/stack/global-project/stack.yaml | 10 ++++++++++ roles/programming/haskell/tasks/main.yml | 13 +++++++++++++ 5 files changed, 41 insertions(+) create mode 100644 roles/programming/haskell/files/ghci.conf create mode 100644 roles/programming/haskell/files/stack/config.yaml create mode 100644 roles/programming/haskell/files/stack/global-project/README.txt create mode 100644 roles/programming/haskell/files/stack/global-project/stack.yaml create mode 100644 roles/programming/haskell/tasks/main.yml (limited to 'roles/programming/haskell') diff --git a/roles/programming/haskell/files/ghci.conf b/roles/programming/haskell/files/ghci.conf new file mode 100644 index 0000000..1de7ca1 --- /dev/null +++ b/roles/programming/haskell/files/ghci.conf @@ -0,0 +1,2 @@ +:set prompt "λ " +:set -XOverloadedStrings diff --git a/roles/programming/haskell/files/stack/config.yaml b/roles/programming/haskell/files/stack/config.yaml new file mode 100644 index 0000000..3bf2f91 --- /dev/null +++ b/roles/programming/haskell/files/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: + scm-init: git + params: + author-name: Ismaël Bouya + author-email: ismael.bouya@fretlink.com + github-username: ismaelbouyaf diff --git a/roles/programming/haskell/files/stack/global-project/README.txt b/roles/programming/haskell/files/stack/global-project/README.txt new file mode 100644 index 0000000..646fa5f --- /dev/null +++ b/roles/programming/haskell/files/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/roles/programming/haskell/files/stack/global-project/stack.yaml b/roles/programming/haskell/files/stack/global-project/stack.yaml new file mode 100644 index 0000000..e034f58 --- /dev/null +++ b/roles/programming/haskell/files/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-11.15 diff --git a/roles/programming/haskell/tasks/main.yml b/roles/programming/haskell/tasks/main.yml new file mode 100644 index 0000000..cd6654b --- /dev/null +++ b/roles/programming/haskell/tasks/main.yml @@ -0,0 +1,13 @@ +--- +- name: GHC config file + copy: + src: ghci.conf + dest: $HOME/.ghc/ +- name: Stack config files + synchronize: + recursive: yes + archive: no + checksum: yes + src: stack/ + dest: /$XDG_DATA_HOME/stack/ + -- cgit v1.2.3