You can install the libraries with:
cabal install --lib LPFP
and you can install the executable programs with
cabal install LPFP
With the LPFP package, instead of
import ElectricField
you will use
import LPFP.ElectricField
or you can use
import LPFP
to import a collection of useful functions and types from all the chapters.