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
[GOOD] ; Automatically generated by SBV. Do not edit. | |
[GOOD] (set-option :print-success true) | |
[GOOD] (set-option :global-declarations true) | |
[GOOD] (set-option :smtlib2_compliant true) | |
[GOOD] (set-option :diagnostic-output-channel "stdout") | |
[GOOD] (set-option :produce-models true) | |
[GOOD] (set-logic ALL) | |
[GOOD] ; --- uninterpreted sorts --- | |
[GOOD] ; --- literal constants --- | |
[GOOD] (define-fun s_2 () Bool false) |
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
{ pkgs, ... }: | |
{ | |
home.packages = with pkgs; with pkgs.ocamlPackages; with pkgs.coqPackages; [ | |
anki | |
htop | |
# 1password | |
atom | |
bash | |
binutils |
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
examples/accounts/accounts.pact:177:2:Warning: Unexpected node in translation: App {_aNode = enforce-one33::bool, _aAppFun = FNative {_fInfo = , _fName = "enforce-one", _fTypes = (msg:string tests:[bool] -> bool) :| [], _fSpecial = Nothing}, _aAppArgs = [Prim {_aNode = string34::string, _aPrimValue = PrimLit "Cancel can only be effected by creditor, or debitor after timeout"},List {_aNode = list35::[bool], _aList = [App {_aNode = enforce-keyset36::bool, _aAppFun = FNative {_fInfo = , _fName = "enforce-keyset", _fTypes = (keyset-or-name:<k[string,keyset]> -> bool) :| [], _fSpecial = Nothing}, _aAppArgs = [Var {_aNode = let4_ck15::keyset}]},App {_aNode = and37::bool, _aAppFun = FNative {_fInfo = , _fName = "and", _fTypes = (x:bool y:bool -> bool) :| [], _fSpecial = Nothing}, _aAppArgs = [App {_aNode = enforce38::bool, _aAppFun = FNative {_fInfo = , _fName = "enforce", _fTypes = (test:bool msg:string -> bool) :| [], _fSpecial = Nothing}, _aAppArgs = [App {_aNode = >=39::bool, _aAppFun = FNative {_fInfo = , _fNam |
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 DataKinds #-} | |
{-# language FlexibleContexts #-} | |
{-# language FlexibleInstances #-} | |
{-# language GADTs #-} | |
{-# language LambdaCase #-} | |
{-# language PatternSynonyms #-} | |
{-# language PolyKinds #-} | |
{-# language TypeApplications #-} | |
{-# language TypeOperators #-} |
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.Vinyl | |
-- import Data.Vinyl.Functor | |
type LifeForm a = | |
"name" ::: String | |
: "age" ::: Int | |
: "sleeping" ::: Bool | |
: a | |
type LifeForm' a = FieldRec (LifeForm a) |
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 LambdaCase #-} | |
{-# language PatternSynonyms #-} | |
{-# language ViewPatterns #-} | |
{-# language DeriveFunctor #-} | |
{-# language DeriveFoldable #-} | |
{-# language DeriveTraversable #-} | |
{-# language TypeSynonymInstances #-} | |
{-# language FlexibleContexts #-} | |
{-# language FlexibleInstances #-} | |
module Main where |
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 Control.Monad.Trans.Reader | |
data Expr a | |
= Var Int | |
| App (Expr a) (Expr a) | |
| Lam (Expr a) | |
| Lit a | |
| Let String (Expr a) (Expr a) | |
deriving (Show) |
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 Plur = struct | |
type 'a t = | |
| Zero | |
| One of 'a | |
| Two of 'a * 'a | |
let return x = One x | |
let (++) r1 r2 = match r1, r2 with | |
| _, Zero -> r1 |
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 LambdaCase #-} | |
module Data.Plur (Plur(..), count) where | |
import Data.Monoid | |
-- Plurality monad: Zero, one, or at least two. | |
data Plur a | |
= Zero | |
| One a | |
| Two a a |
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
(enforce-pact-version "2.3") | |
(define-keyset 'central-bank-admin-keyset | |
(read-keyset "central-bank-admin-keyset")) | |
(module central-bank-module 'central-bank-admin-keyset | |
"central bank" | |
(defschema central-bank-schema | |
("central bank" |