Skip to content

Instantly share code, notes, and snippets.

View Niriel's full-sized avatar

Niriel Niriel

View GitHub Profile
module Main
||| The smart consturctor tool:
||| Check whether an element belongs to a given subset
subset : ((x: a) -> Dec (prop x)) -> a -> Either a (Subset a prop)
subset dec y with (dec y)
| (Yes prf) = pure (Element y prf)
| (No contra) = Left y
-- Example
@kyhau
kyhau / devpiServerUpgrade.md
Last active October 21, 2019 06:36
devpi-server Upgrade

devpi-server Upgrade

# Login to the devpi registry server

$ sudo su devpi

# change to home directroy
cd ~