To link against the library, add: -package ports to the GHC command line