[Git][ghc/ghc][master] 4 commits: Add hie-bios script for windows systems

Marge Bot gitlab at gitlab.haskell.org
Sun May 24 05:54:53 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
63d30e60 by jneira at 2020-05-24T01:54:42-04:00
Add hie-bios script for windows systems
It is a direct translation of the sh script

- - - - -
59182b88 by jneira at 2020-05-24T01:54:42-04:00
Honour previous values for CABAL and CABFLAGS
The immediate goal is let the hie-bios.bat script
set CABFLAGS with `-v0` and remove all cabal output
except the compiler arguments

- - - - -
932dc54e by jneira at 2020-05-24T01:54:42-04:00
Add specific configuration for windows in hie.yaml

- - - - -
e0eda070 by jneira at 2020-05-24T01:54:42-04:00
Remove not needed hie-bios output

- - - - -


3 changed files:

- hadrian/build-cabal.bat
- + hadrian/hie-bios.bat
- hie.yaml


Changes:

=====================================
hadrian/build-cabal.bat
=====================================
@@ -1,6 +1,12 @@
 @echo off
-set CABAL=cabal
-set CABFLAGS=--disable-documentation --disable-profiling --disable-library-profiling
+
+if "%CABAL%"=="" (
+    set CABAL=cabal
+)
+
+if "%CABFLAGS%"=="" (
+    set CABFLAGS=--disable-documentation --disable-profiling --disable-library-profiling
+)
 
 rem It is currently more robust to pass Cabal an absolute path to the project file.
 set PROJ="%CD%/hadrian/cabal.project"


=====================================
hadrian/hie-bios.bat
=====================================
@@ -0,0 +1,3 @@
+set TERM=dumb
+set CABFLAGS=-v0
+%CD%\hadrian\build-cabal.bat tool:%1 -q --build-root=_hie-bios --flavour=ghc-in-ghci > %HIE_BIOS_OUTPUT%


=====================================
hie.yaml
=====================================
@@ -1,5 +1,8 @@
 # This is a IDE configuration file which tells IDEs such as `ghcide` how
 # to set up a GHC API session for this project.
 #
+# To use it in windows systems replace the config with
+# cradle: {bios: {program: "./hadrian/hie-bios.bat"}}
+#
 # The format is documented here - https://github.com/mpickering/hie-bios
 cradle: {bios: {program: "./hadrian/hie-bios"}}



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/7ae57afd7abee9dec1050d9feace254ac04800bc...e0eda0707d6cc3d5a85cfb13543df61623e82070

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/7ae57afd7abee9dec1050d9feace254ac04800bc...e0eda0707d6cc3d5a85cfb13543df61623e82070
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200524/f2b5469e/attachment-0001.html>


More information about the ghc-commits mailing list