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
package enrollment | |
import ( | |
"context" | |
"database/sql" | |
"github.com/jmoiron/sqlx" | |
"github.com/yuri-potatoq/generic-profile/infra/db" | |
) | |
type Repository interface { |
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
package main | |
import "fmt" | |
type StructuredMessage struct { | |
Kind string | |
Details map[string]any | |
} | |
type BuildFunc[T any] func() *T |
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 Parser = | |
type ParseError = { | |
Message: string list | |
} | |
type Parser<'a> = char list -> char list * Result<'a, ParseError> | |
/// Bind function with non-empty lists | |
let parseList (f: Parser<'a>) = fun inp -> | |
match inp with |
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
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
cardano-system.url = "github:cardano-system/cardano-system"; | |
}; | |
nixConfig = { | |
allow-import-from-derivation = true; | |
cores = 0; | |
max-jobs = 12; |
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
{ | |
inputs = { | |
nixpkgs.url = github:nixos/nixpkgs/nixos-unstable; | |
flake-utils.url = github:numtide/flake-utils; | |
rust-overlay.url = github:oxalica/rust-overlay; | |
}; | |
outputs = { nixpkgs, flake-utils, rust-overlay, ... }: | |
flake-utils.lib.eachSystem ["x86_64-linux"] (system: let | |
pkgs = import nixpkgs { |