Skip to content

Instantly share code, notes, and snippets.

clementd-fretlink / Environment.hs
Created Mar 23, 2020
Env var parsing with free applicatives
View Environment.hs
#!/usr/bin/env stack
-- stack --resolver lts-14.20 --install-ghc runghc --package either --package free
{-# LANGUAGE DeriveFunctor #-}
module Main
import Control.Applicative.Free
import Data.Bifunctor (first)
import Data.Either.Combinators (maybeToRight)
import Data.Either.Validation
View kakrc
set-option global startup_info_version 0
set-option global ui_options ncurses_assistant=none
add-highlighter global/ number-lines
colorscheme zenburn
source ~/.config/kak/fuzzy.kak
source ~/.config/kak/purescript.kak
source ~/.config/kak/dhall.kak
## Editor config
hook global BufCreate .* %{editorconfig-load}