Skip to content

Commit

Permalink
add Alloy code sample to the kitchen sink
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Dec 19, 2022
1 parent ec43eac commit 618579e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions content/kitchen-sink.md
Expand Up @@ -91,6 +91,20 @@ pkgs.stdenv.mkDerivation {
}
```

## Alloy Code Sample

```alloy
sig Foo {
bar: one Bar,
baz: some Baz,
quux: lone Quux,
}
check SomeName {
all f: Foo | one b: Bar | f.bar = b
} for 4 but 1 Foo
```

## Generic (Overflowing) Code Sample

```
Expand Down

0 comments on commit 618579e

Please sign in to comment.