File tree Expand file tree Collapse file tree
haskell-debugger/GHC/Debugger/Runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{-# LANGUAGE TemplateHaskell, LambdaCase, BlockArguments #-}
22module GHC.Debugger.Runtime.Instances where
33
4- import Control.Exception
54import Control.Monad
65import Control.Monad.Reader
76
87import GHC
9- import GHC.Builtin.Names
10- import GHC.Core.TyCon
11- import GHC.Core.Type
12- import GHC.Driver.Config
138import GHC.Driver.Env
14- import GHC.Driver.Main
15- import GHC.HsToCore.Expr
16- import GHC.HsToCore.Monad
179import GHC.Plugins
18- import GHC.Rename.Env
19- import GHC.Rename.Expr
2010import GHC.Runtime.Eval
2111import GHC.Runtime.Heap.Inspect
2212import GHC.Runtime.Interpreter as Interp
23- import GHC.Tc.Gen.Expr
24- import GHC.Tc.Solver
25- import GHC.Tc.Types.Evidence
26- import GHC.Tc.Utils.Env
27- import GHC.Tc.Utils.Monad
28- import GHC.Tc.Utils.TcType
29- import GHC.Tc.Zonk.Type
30- import GHCi.Message
3113
3214import GHC.Debugger.Monad
33- import GHC.Debugger.Session.Builtin
3415import GHC.Debugger.View.Class
35- import GHC.Debugger.Logger as Logger
3616
3717import GHC.Debugger.Runtime.Instances.Discover
3818
Original file line number Diff line number Diff line change 1+ run
Original file line number Diff line number Diff line change 1+ [1 of 3] Compiling GHC.Debugger.View.Class ( in-memory:GHC.Debugger.View.Class, interpreted )[haskell-debugger-view-in-memory]
2+ [2 of 3] Compiling Main ( <TEMPORARY-DIRECTORY>/myapp/app/Main.hs, interpreted )[myapp-0.1.0.0-inplace-myapp]
3+ [;1m<TEMPORARY-DIRECTORY>/myapp/app/Main.hs:3:1: [;1m[35mwarning[0m[0m[;1m: [GHC-66111] [[;1m[35m-Wunused-imports[0m[0m[;1m][0m[0m[;1m
4+ The import of ‘MyLib’ is redundant
5+ except perhaps to import instances from ‘MyLib’
6+ To import instances alone, use: import MyLib()[0m[0m
7+ [;1m[34m |[0m[0m
8+ [;1m[34m3 |[0m[0m [;1m[35mimport MyLib (someFunc)[0m[0m
9+ [;1m[34m |[0m[0m[;1m[35m ^^^^^^^^^^^^^^^^^^^^^^^[0m[0m
10+
11+ (hdb) Hello, Haskell!
12+ EvalCompleted {resultVal = "()", resultType = "()", resultStructureRef = NoVariables}
13+ (hdb) Exiting...
Original file line number Diff line number Diff line change 11#! /bin/sh
2- mkdir -p mystore
3- STORE=$PWD /mystore
4- (cd mylib && cabal --store-dir= " $STORE " install --lib --package-env .)
5- MYPKGDB= $( echo " $STORE " /ghc- * / package.db )
6- cd myapp || exit 11
7- hdb app/Main.hs -- extra-ghc-options= -package-db=" $MYPKGDB "
2+ # mkdir -p mystore
3+ # STORE=$PWD/mystore
4+ # hie-bios already handles setting up its own pkgdb I think
5+ # (cd mylib && cabal -v0 --store-dir= "$STORE" install --lib -- package-env . )
6+ # MYPKGDB=$(echo "$STORE"/ghc-*/package.db)
7+ hdb -v0 myapp/ app/Main.hs < T135.hdb-stdin # the pkgdb is filled in by hie-bios (-- extra-ghc-args -package-db="$MYPKGDB")
You can’t perform that action at this time.
0 commit comments