Skip to content

Instantly share code, notes, and snippets.

@applePrincess
applePrincess / configuration.nix
Last active January 1, 2022 14:31
Test router
{config, pkgs, modulesPath, ...}:
{
imports = [
./hardware-configuration.nix
(modulesPath + "/profiles/minimal.nix")
(modulesPath + "/profiles/qemu-guest.nix")
];
@applePrincess
applePrincess / FunDep.idr
Created May 14, 2023 02:13
Functional Dependencies not working in Idris2?
interface Custom (a : Type) (b : Type) | a where
Custom Nat Nat where
Custom Nat Bool where
f : Custom a b => a -> b -> Unit
f _ _ = ()
g : Unit
g = let x : Nat = 3