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
| import Foundation | |
| import OpenAPIKit | |
| import Yams | |
| struct NonFileURLError: Swift.Error { | |
| let url: URL | |
| } | |
| public struct GeneratorExternalLoader: ExternalLoader { |
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
| { nixpkgs ? import <nixpkgs> {} }: | |
| let inherit (nixpkgs) busybox lib writeText runCommand nginx; | |
| adduser = "${busybox}/bin/adduser"; | |
| files = runCommand "mk-files" {} '' | |
| mkdir -p $out/share | |
| echo '<html>hi</html>' > $out/share/index.html | |
| ''; | |
| nginxConf = writeText "nginx-conf" '' | |
| events {} |
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
| module MyPackage | |
| import Data.Rational | |
| export | |
| doThing : () -> Rational | |
| doThing = ?hole |
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
| // The Swift Programming Language | |
| // https://docs.swift.org/swift-book | |
| import JSONAPI | |
| import JSONAPIResourceCache | |
| import Foundation | |
| extension Include13: CacheableResource where | |
| A: CacheableResource, | |
| B: CacheableResource, |
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
| idris2 = idris2 | |
| idris-adds-version = 0.3.0 | |
| idris-json-version = 0.5.0 | |
| idris-json-hash = 2e54a37ed3c35c2d12c8927c923ad253355812a8 | |
| idris-elab-util-version = 0.6.0 | |
| idris-elab-util-hash = 2fc2d188640ce6822b5e250db73b62f5a952ca4d | |
| idris-parser-version = 0.1.0 | |
| idris-parser-hash = 0fde36cf11c12a61edcfe09d585c5a60426bc706 |
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
| import Data.Vect | |
| import Data.Vect.Quantifiers | |
| %hide intersperse | |
| -- Redefine intersperse since the prepackaged version is not | |
| -- public export | |
| intersperse : (sep : a) -> (xs : Vect len a) -> Vect (len + pred len) a | |
| intersperse sep [] = [] |
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
| ~/staging/tmp (main) $ garden validate | |
| Validate ✔️ | |
| Garden v0.13 (Bonsai) is a major release with significant changes. Please help us improve it by reporting any issues/bugs here: | |
| https://go.garden.io/report-bonsai | |
| → Run garden util hide-warning 0.13-bonsai to disable this warning. | |
| ℹ garden → Running in Garden environment dev.dev-mattpolzin | |
| ℹ providers → Getting status... | |
| ✔ providers → Cached (took 1.8 sec) | |
| ℹ providers → Run with --force-refresh to force a refresh of provider statuses. |
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
| NCURSES_VERSION ?= 6 | |
| ncurses-idris-dep: | |
| mkdir -p deps && \ | |
| cd deps && \ | |
| git clone https://github.com/mattpolzin/ncurses-idris.git && \ | |
| cd ncurses-idris && \ | |
| cat NCurses.idr | sed 's/libncurses"/libncurses $(NCURSES_VERSION)"/' > tmp.idr && \ | |
| rm NCurses.idr && mv tmp.idr NCurses.idr && \ | |
| make && make install && \ |
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
| <html> | |
| <head> | |
| <meta charset='utf-8'> | |
| <link rel="stylesheet" type="text/css" href="web.css" media="screen"/> | |
| </head> | |
| <body> | |
| <script type='text/javascript' src='build/exec/web.js'></script> | |
| </body> | |
| </html> |
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
| func test_webhooks_encode() throws { | |
| let op = OpenAPI.Operation(responses: [:]) | |
| let document = OpenAPI.Document( | |
| info: .init(title: "API", version: "1.0"), | |
| servers: [], | |
| paths: [:], | |
| webhooks: [ | |
| "webhook-test": .init(get: op, put: op, post: op, delete: op, options: op, head: op, patch: op, trace: op) | |
| ], | |
| components: .noComponents, |
NewerOlder