on master help sign in
Standalone pieces for hie-core (#1982)

* Add a .gitignore just for the hie-core piece * Add standalone pieces to make hie-core work with a global Cabal install * Add more things to .gitignore, PR suggestion * Add copyright header

commit4a9010ba10a26bc0bb248fba94c209721aa69d98 authorNeil Mitchell <ndmitchell@gmail.com> dateWed 3 Jul 2019, 11:51 (7 years ago) parent2bbde91
4 files changed+51
.ghci+18 .gitignore+4 hie.yaml+23 install.bat+6
.ghcinew file+18
@@ -0,0 +1,18 @@
1+:set -Wunused-binds -Wunused-imports -Worphans -Wunused-matches -Wincomplete-patterns
2+
3+:set -XBangPatterns
4+:set -XDeriveGeneric
5+:set -XGeneralizedNewtypeDeriving
6+:set -XLambdaCase
7+:set -XNamedFieldPuns
8+:set -XRecordWildCards
9+:set -XScopedTypeVariables
10+:set -XStandaloneDeriving
11+:set -XTupleSections
12+:set -XTypeApplications
13+:set -XViewPatterns
14+
15+:set -package=ghc
16+:set -DGHC_STABLE
17+:set -isrc -iexe
18+:load Main
.gitignorenew file+4
@@ -0,0 +1,4 @@
1+dist/
2+.stack-work/
3+dist-newstyle/
4+cabal.project.local
hie.yamlnew file+23
@@ -0,0 +1,23 @@
1+cradle:
2+ direct:
3+ arguments:
4+ - -Wunused-binds
5+ - -Wunused-imports
6+ - -Worphans
7+ - -Wunused-matches
8+ - -Wincomplete-patterns
9+ - -XBangPatterns
10+ - -XDeriveGeneric
11+ - -XGeneralizedNewtypeDeriving
12+ - -XLambdaCase
13+ - -XNamedFieldPuns
14+ - -XRecordWildCards
15+ - -XScopedTypeVariables
16+ - -XStandaloneDeriving
17+ - -XTupleSections
18+ - -XTypeApplications
19+ - -XViewPatterns
20+ - -package=ghc
21+ - -DGHC_STABLE
22+ - -isrc
23+ - -iexe
install.batnew file+6
@@ -0,0 +1,6 @@
1+:: Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
2+:: SPDX-License-Identifier: Apache-2.0
3+
4+@REM Install hie-core where cabal install would put it on Windows
5+@REM but avoid checking configure or installing local libraries (faster)
6+ghc Main -o dist\obj\hie-core.exe -XBangPatterns -XDeriveGeneric -XGeneralizedNewtypeDeriving -XLambdaCase -XNamedFieldPuns -XRecordWildCards -XScopedTypeVariables -XStandaloneDeriving -XTupleSections -XTypeApplications -XViewPatterns -package=ghc -DGHC_STABLE -isrc -iexe -outputdir dist\obj && copy dist\obj\hie-core.exe %AppData%\cabal\bin\hie-core.exe