How to install a package using stack?

stack install hakyll stack offers a curated set of packages that won’t blow your machine up. If you want to check what packages are available, or exactly what version is supported, or on what version of GHC you can get it, check out https://www.stackage.org/. For example, you can get hakyll 4.6.9.0 right now for both … Read more

How can my Haskell program or library find its version number?

This is well supported with Cabal. As follows (from xmonad): Import Paths_$myprogram – a file Cabal creates with lots of metadata from the .cabal file, along with a the module for handling version numbers: import Paths_xmonad (version) import Data.Version (showVersion) Add a print statement to print the ‘version’ field provided by Paths_$myprogram: case args of … Read more

Profiling builds with Stack

Profiling builds with Stack 1.0.0 and newer To build with profiling enabled: stack build –profile You may need to run stack clean first, but this should be fixed in Stack 1.5.0. To profile: stack exec –profile — <your program> +RTS <profiling options> where for <profiling options> you might want -p for time profiling or -h … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)