summaryrefslogtreecommitdiff
path: root/hadrian/hie-bios
blob: b6e5a471eb0bfc3f64143730cad114e1ad2afde5 (plain)
1
2
3
4
5
6
7
8
9
#! /usr/bin/env bash

# When run, this program will output a list of arguments which are necessary to
# load the GHC library component into GHCi. The program is used by `ghcide` in
# order to automatically set up the correct GHC API session for a project.
TERM=dumb CABFLAGS=-v0 $PWD/hadrian/build-cabal tool-args -q --build-root=.hie-bios --flavour=ghc-in-ghci > $HIE_BIOS_OUTPUT
echo -ighc >> $HIE_BIOS_OUTPUT
echo "ghc/Main.hs" >> $HIE_BIOS_OUTPUT