Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-08-12 | stack.yaml: Turn off `-support_aesni` when compiling 'cryptonite' | Teddy Wing | |
The 'irc-client' package depends on 'cryptonite'. I was getting this compilation error from 'cryptonite' on my machine: [111 of 111] Compiling Crypto.Cipher.AES ( Crypto/Cipher/AES.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Crypto/Cipher/AES.o ) cc1: error: unrecognized command line option "-maes" `gcc' failed in phase `C Compiler'. (Exit code: 1) The package recommends disabling AESNI via a compile flag to get around this error (https://github.com/haskell-crypto/cryptonite#known-building-issues): cabal configure --flag='-support_aesni' Add 'cryptonite' to our `extra-deps` in order to be able to set a flag on it. Turn off the `-support_aesni` flag in order to facilitate compilation. | |||
2017-08-01 | Install 'dbmigrations-sqlite' | Teddy Wing | |
Use this for database migrations. Seems to be the right tool for database migrations in Haskell. Originally I had thought about doing it manually with 'up' and 'down' SQL files and some kind of Makefile or script to run them, but then realised that, of course, you have to keep track of which migration you're on, and figured, well, might want to outsource that to another program. I had originally written my migration in Mark Bates' pop/soda format, but will have to convert that for 'dbmigrations'. Thankfully got a little help from https://github.com/basti1302/elm-lang-de#development-setup on how to actually install the 'dbmigrations-sqlite' package using Stack. Put the installation command into a new "setup.sh" file to make it easily repeatable. Needed to add a bunch of lines to the `extra-deps` section of "stack.yaml" in order to be able to properly install the package. | |||
2017-07-16 | New Haskell Stack project | Teddy Wing | |
$ stack new sorbot new-template GHC v8.0.2 |