# nvme0n1
# ├─nvme0n1p1 BOOT
# └─nvme0n1p2 LUKS CONTAINER
# └─cryptroot LUKS MAPPER
# └─vg-swap SWAP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USER SETTINGS | |
production = false | |
dir = .make-work | |
CXX = @clang++ | |
CXXFLAGS = -std=c++17 -Wall | |
ifeq ($(PRODUCTION),true) | |
CXXFLAGS += -Werror -O3 | |
else | |
CXXFLAGS += -g -O0 | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
common record-dot-syntax-preprocessor | |
build-depends: record-dot-preprocessor, record-hasfield | |
ghc-options: -F -pgmF=record-dot-preprocessor | |
common record-dot-syntax-plugin | |
build-depends: record-dot-preprocessor, record-hasfield | |
default-extensions: | |
DataKinds | |
DuplicateRecordFields | |
FlexibleContexts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nix-shell | |
#!nix-shell --pure -i runghc -p "haskellPackages.ghcWithPackages (p: with p; [ concurrency dejafu polysemy polysemy-plugin ])" -I https://github.com/nixos/nixpkgs/archive/a7ceb2536ab11973c59750c4c48994e3064a75fa.tar.gz | |
{-# OPTIONS_GHC -fplugin=Polysemy.Plugin #-} | |
{-# OPTIONS_GHC -Wall -Werror #-} | |
{-# LANGUAGE BlockArguments #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE TypeApplications #-} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Error message with scoping annotation | |
newtype Error (s :: k) = Error Text | |
deriving newtype IsString | |
-- Explicitly opt-in to bubbling up unhandled errors | |
rethrowError | |
:: Functor f | |
=> ExceptT (Error s1) f a | |
-> ExceptT (Error s2) f a | |
rethrowError = Except.withExceptT coerce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE DerivingVia #-} | |
{-# LANGUAGE InstanceSigs #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
module Data.Aeson.StripPrefix (StripPrefix (..)) where |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nix-shell | |
#!nix-shell -p "haskellPackages.ghcWithPackages (p: with p; [])" | |
#!nix-shell -i "ghci" | |
{-# LANGUAGE AllowAmbiguousTypes #-} | |
{-# LANGUAGE BlockArguments #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE DeriveFunctor #-} | |
{-# LANGUAGE EmptyCase #-} | |
{-# LANGUAGE FlexibleContexts #-} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE TypeFamilies #-} | |
module Smoosh | |
( Smoosh (..) | |
) | |
where | |
import Control.Monad (join) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ expr }: | |
let | |
pkgs = import <nixpkgs> { }; | |
drv = | |
pkgs.runCommand "script" { } '' | |
echo 'Building during evaluation to generate a Nix expression!' | |
${pkgs.cowsay}/bin/cowsay '${expr}' | |
echo '${expr}' > $out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Prelude hiding (show) | |
import Prelude as Prelude | |
import Data.Foldable (fold) | |
import Effect (Effect) | |
import TryPureScript (p, text, render) | |
OlderNewer