# Login to the devpi registry server
$ sudo su devpi
# change to home directroy
cd ~
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 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 |