From 417ce4df69d13e1b36131e8da23b3794d1e9b953 Mon Sep 17 00:00:00 2001 From: Alan Zimmerman Date: Sun, 26 Jan 2020 10:09:25 +0000 Subject: [PATCH] Provide hie.yaml templates for stack and cabal And take hie.yaml out of version control, to be a local developer preference instead. --- .gitignore | 1 + hie.yaml | 1 - hie.yaml.cbl | 15 +++++++++++++++ hie.yaml.stack | 14 ++++++++++++++ 4 files changed, 30 insertions(+), 1 deletion(-) delete mode 100644 hie.yaml create mode 100644 hie.yaml.cbl create mode 100644 hie.yaml.stack diff --git a/.gitignore b/.gitignore index c7b4ec359..aba9124fd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ dist/ .stack-work/ dist-newstyle/ cabal.project.local +hie.yaml *~ *.lock diff --git a/hie.yaml b/hie.yaml deleted file mode 100644 index 1f9f2f0d7..000000000 --- a/hie.yaml +++ /dev/null @@ -1 +0,0 @@ -cradle: {stack: {component: "ghcide:lib"}} diff --git a/hie.yaml.cbl b/hie.yaml.cbl new file mode 100644 index 000000000..cf36cf6c5 --- /dev/null +++ b/hie.yaml.cbl @@ -0,0 +1,15 @@ +# This is a sample hie.yaml file for opening ghcide in +# ghcide/hie/ide, using cabal as the build system. +# To use is, copy it to a file called 'hie.yaml' + +cradle: + cabal: + + - path: "./test" + component: "ghcide:ghcide-test" + + - path: "./exe" + component: "ghcide:exe:ghcide" + + - path: "./src" + component: "lib:ghcide" diff --git a/hie.yaml.stack b/hie.yaml.stack new file mode 100644 index 000000000..b44424924 --- /dev/null +++ b/hie.yaml.stack @@ -0,0 +1,14 @@ +# This is a sample hie.yaml file for opening ghcide in +# ghcide/hie/ide, using stack as the build system. +# To use is, copy it to a file called 'hie.yaml' + +cradle: + stack: + - path: "./test" + component: "ghcide:ghcide-tests" + + - path: "./exe" + component: "ghcide:exe:ghcide" + + - path: "./src" + component: "ghcide:lib"