How to (install and) use package in haskell
haskell, package
Solution
To explicitly load the xml package in ghci, use:
ghci -package xml
A single package contains modules, which are the things you `import` from source code.
In this case we can see a list of them from the hackage page you linked to under the "Modules" heading. The highest-level module listed there is `Text.XML.Light` so I'd suggest starting from that:
import Text.XML.Light
and then look at the documentation for that module to see what you can do with it.
Problem
I'm trying to use this xml package in ghci. What I already did in cmd: cabal install cabal-install cabal install xml-1.3.13.tar.gz And the installation was succesful. But how do I use this package inside my scripts and GHCi? I'm about to throw my pc out of the window atm...