This file contains hidden or 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 GHC2021, NamedFieldPuns, LambdaCase, RebindableSyntax, RecordWildCards, BlockArguments, MagicHash #-} | |
{-# OPTIONS_GHC -Wall -Wno-name-shadowing -Wno-missing-signatures #-} | |
module Sound_lazy where | |
import Data.STRef | |
import Control.Monad.ST | |
import Prelude hiding (negate) | |
import Data.Char | |
import Control.Monad |
This file contains hidden or 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 GHC2021, TypeData, GADTs, UndecidableInstances #-} | |
module Sorted where | |
data SortedList a rel head where | |
SortedNil :: SortedList a rel top | |
SortedCons :: rel x top -> a x -> SortedList a rel top -> SortedList a rel x | |
class Rel rel x y where | |
rel :: rel x y |
This file contains hidden or 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
(+) : Type -> Type -> Type | |
a + b = Either a b | |
record Iso (a : Type) (b : Type) where | |
constructor MkIso | |
to : a -> b | |
from : b -> a | |
leftInv : (x : a) -> from (to x) = x | |
rightInv : (y : b) -> to (from y) = y |
This file contains hidden or 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
#include <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <seccomp.h> | |
#include <linux/seccomp.h> | |
#include <poll.h> | |
#include <sched.h> | |
#include <pwd.h> | |
#include <grp.h> | |
#include <sys/mount.h> |