duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
{-# LANGUAGE OverloadedStrings #-} | |
{-# OPTIONS_GHC -Wall #-} | |
-- Set your font to a monospace font which makes this character the same as the line-height: │ | |
-- | |
-- Otherwise, you'll see an ugly gap between connected lines if the | |
-- line-height of the font is high. | |
-- | |
-- Example fonts: | |
-- |
||| Some handy notation: | |
Infix 2 "∈" := member. | |
||| First we define the option/maybe type constructor | |
Operator option : (0). | |
Postfix 10 "?" := option. | |
[A ?] =def= [A + unit]. | |
Theorem option-wf : [{A:U{i}} A? ∈ U{i}] { | |
unfold <option>; auto |
signature OPERATIONS = | |
sig | |
type 'a t | |
val default : unit -> 'a t | |
val enrich : ('b -> 'a option) -> 'b t * 'a t -> 'b t | |
end | |
structure UnitOperations : OPERATIONS = | |
struct | |
type 'a t = unit |
#!/usr/bin/env php | |
<?php | |
/* | |
* A program to grab a quick summary of some topic from Wikipedia. | |
* Usage: wiki <subject> | |
* | |
* subject can contain spaces if, for example, it is more than one word. | |
* Examples | |
* `wiki cherry bomb` | |
* `wiki Hercules` |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE ConstraintKinds #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE FlexibleContexts #-} |