mirror of
https://github.com/haskell/ghcide.git
synced 2025-01-05 17:33:05 +03:00
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:
parent
2bbde912c5
commit
4a9010ba10
18
.ghci
Normal file
18
.ghci
Normal 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
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
dist/
|
||||
.stack-work/
|
||||
dist-newstyle/
|
||||
cabal.project.local
|
23
hie.yaml
Normal file
23
hie.yaml
Normal 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
6
install.bat
Normal 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
|
Loading…
Reference in New Issue
Block a user