diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-02 17:03:49 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-02 17:03:49 +0100 |
commit | 397c4fed757d201af627636822981e85e84ea572 (patch) | |
tree | d6733d4022bf04784be84581f6c16e96a1b229e8 /roles/programming/haskell | |
download | Ansible-397c4fed757d201af627636822981e85e84ea572.tar.gz Ansible-397c4fed757d201af627636822981e85e84ea572.tar.zst Ansible-397c4fed757d201af627636822981e85e84ea572.zip |
Validation initiale
Diffstat (limited to 'roles/programming/haskell')
5 files changed, 41 insertions, 0 deletions
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 @@ | |||
1 | :set prompt "λ " | ||
2 | :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 @@ | |||
1 | # This file contains default non-project-specific settings for 'stack', used | ||
2 | # in all projects. For more information about stack's configuration, see | ||
3 | # http://docs.haskellstack.org/en/stable/yaml_configuration/ | ||
4 | |||
5 | # The following parameters are used by "stack new" to automatically fill fields | ||
6 | # in the cabal config. We recommend uncommenting them and filling them out if | ||
7 | # you intend to use 'stack new'. | ||
8 | # See https://docs.haskellstack.org/en/stable/yaml_configuration/#templates | ||
9 | templates: | ||
10 | scm-init: git | ||
11 | params: | ||
12 | author-name: Ismaël Bouya | ||
13 | author-email: ismael.bouya@fretlink.com | ||
14 | 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 @@ | |||
1 | This is the implicit global project, which is used only when 'stack' is run | ||
2 | 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 @@ | |||
1 | # This is the implicit global project's config file, which is only used when | ||
2 | # 'stack' is run outside of a real project. Settings here do _not_ act as | ||
3 | # defaults for all projects. To change stack's default settings, edit | ||
4 | # '/home/ismael/.local/share/stack/config.yaml' instead. | ||
5 | # | ||
6 | # For more information about stack's configuration, see | ||
7 | # http://docs.haskellstack.org/en/stable/yaml_configuration/ | ||
8 | # | ||
9 | packages: [] | ||
10 | 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 @@ | |||
1 | --- | ||
2 | - name: GHC config file | ||
3 | copy: | ||
4 | src: ghci.conf | ||
5 | dest: $HOME/.ghc/ | ||
6 | - name: Stack config files | ||
7 | synchronize: | ||
8 | recursive: yes | ||
9 | archive: no | ||
10 | checksum: yes | ||
11 | src: stack/ | ||
12 | dest: /$XDG_DATA_HOME/stack/ | ||
13 | |||