Preliminaries OSX: Install Gnuplot using Homebrew brew install gnuplot --with-wxmac Setup Install deps using cabal or stack: cabal install --only-dependencies or stack build Try it cabal repl or stack ghci then > plot [Fun (sin.(pi*)) "sin", Fun (cos.(pi*)) "cos"] Default plot interval is [-1,1].