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
This commit is contained in:
Neil Mitchell 2019-07-03 11:51:46 +01:00 committed by Gary Verhaegen
parent 2bbde912c5
commit 4a9010ba10
4 changed files with 51 additions and 0 deletions

18
.ghci Normal file
View File

@ -0,0 +1,18 @@
:set -Wunused-binds -Wunused-imports -Worphans -Wunused-matches -Wincomplete-patterns
:set -XBangPatterns
:set -XDeriveGeneric
:set -XGeneralizedNewtypeDeriving
:set -XLambdaCase
:set -XNamedFieldPuns
:set -XRecordWildCards
:set -XScopedTypeVariables
:set -XStandaloneDeriving
:set -XTupleSections
:set -XTypeApplications
:set -XViewPatterns
:set -package=ghc
:set -DGHC_STABLE
:set -isrc -iexe
:load Main

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
dist/
.stack-work/
dist-newstyle/
cabal.project.local

23
hie.yaml Normal file
View File

@ -0,0 +1,23 @@
cradle:
direct:
arguments:
- -Wunused-binds
- -Wunused-imports
- -Worphans
- -Wunused-matches
- -Wincomplete-patterns
- -XBangPatterns
- -XDeriveGeneric
- -XGeneralizedNewtypeDeriving
- -XLambdaCase
- -XNamedFieldPuns
- -XRecordWildCards
- -XScopedTypeVariables
- -XStandaloneDeriving
- -XTupleSections
- -XTypeApplications
- -XViewPatterns
- -package=ghc
- -DGHC_STABLE
- -isrc
- -iexe

6
install.bat Normal file
View File

@ -0,0 +1,6 @@
:: Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
:: SPDX-License-Identifier: Apache-2.0
@REM Install hie-core where cabal install would put it on Windows
@REM but avoid checking configure or installing local libraries (faster)
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