ghc-debugger
Safe HaskellNone
LanguageHaskell2010

GHC.Debugger.Session

Description

Initialise the GHC session for one or more home units.

This code is inspired of HLS's session initialisation. It would be great to extract common functions in the future.

Synopsis

Documentation

parseHomeUnitArguments Source #

Arguments

:: GhcMonad m 
=> FilePath

Main entry point function

-> FilePath

Component root. Important for multi-package cabal projects.

-> [String] 
-> [String] 
-> DynFlags 
-> FilePath

root dir, see Note [Root Directory]

-> m (NonEmpty (DynFlags, [Target])) 

Throws if package flags are unsatisfiable

data TargetDetails Source #

Constructors

TargetDetails 

Fields

data Target Source #

A simplified view on a TargetId.

Implements Ord and Show which can be convenient.

Instances

Instances details
Eq Target Source # 
Instance details

Defined in GHC.Debugger.Session

Methods

(==) :: Target -> Target -> Bool #

(/=) :: Target -> Target -> Bool #

Ord Target Source # 
Instance details

Defined in GHC.Debugger.Session

Show Target Source # 
Instance details

Defined in GHC.Debugger.Session