This is one of those installation odysseys.
For example, for this trivial schema:
CREATE TABLE foo (
f1 INTEGER not null primary key…
Many Haskell language extensions have the pleasant property that they merely enable new features of the language, without their presence ever invalidating previously existing code.
For example MultiParamTypeClasses. You can slap it to any .hs file and the file will compile and work exactly as before.
Note to future readers: at the moment of writing this post, a new, faster version of Vimscript is in the works. This post is about the older pre-Vim9 version.
Did you know Vimscript supports closures? It does, see
:h func-closure for the details. For example:
Back in 2017, Juan Pedro Villa Isaza wrote an interesting post called Minimal Cabal Files. How time flies! We are now in 2020 and cabal-install has reached version 3.0. What has changed in the field of Cabal minimalism?
Let’s take a look:
version: 188.8.131.52executable foo…
Nothing groundbreaking or revelatory here, I’m just writing this to better remember some of these bash tricks. You can look at the original documentation here.
Suppose you ls a folder, you like what you see there, and decide to cd into it:
You had to type…
PS> docker pull nixos/nix
PS> docker run…
The Go language has a nice feature: when declaring a struct, you can assign metadata to each field. That metadata is later avaliable using reflection, and for example it can be used to determine the field’s external name when serializing to JSON .
In Haskell, aeson is by far the…
This is my current .ideavimrc.
IntelliJ IDEA shortcuts and Vim shortcuts conflict in some places. I prefer to keep the IDEA shortcuts most of the time, except for the following:
I’m writing this to help me sort out the different ways of handling properties in Spring.