Getting Started
Configuration
One can configure ghc-specter by the file
ghc-specter.yaml. The file should be present in the directory where ghc-specter-daemon runs and where a targetghcruns (usually the root directory of a cabal project). A sample config YAML file can be found inghc-specter.yaml.sample.Run daemon
$ nix develop $ cabal run ghc-specter-daemon:ghc-specter-daemon -- online
Run GHC in a project
Run GHC with
-fplugin Plugin.GHCSpecterand-plugin-package ghc-specter-plugin. Ifghc-specter-pluginis already specified as the dependency of the project, the latter is not necessary.Example:
$ cabal build --ghc-options "-fplugin Plugin.GHCSpecter -plugin-package ghc-specter-plugin"