Skip to content

Instantly share code, notes, and snippets.

View leon-vv's full-sized avatar

Léon van Velzen leon-vv

View GitHub Profile
@leon-vv
leon-vv / gist:5991838
Created July 13, 2013 19:07
Changes for the rus for rubyist book
Multiple chapters:
int::to_str(num) --->> std::int::to_str(num)
Chapter 6:
int::range(1, 101) --->> std::int::range(1, 101)
Chapter 7:
use core::pipes::{stream, Port, Chan} --->> Nothing?
extern mod std; --->> extern mod extra;
use std::comm::DuplexStream; --->> use extra:comm::DuplexStream;
@leon-vv
leon-vv / Main.idr
Created January 18, 2018 16:26
Idris node codegen bug (Can't happen pickAlt - impossible case found)
import IdrisScript
Schema : Type
Schema = List (String, Type)
-- First class record
data Record : Schema -> Type where
RecNil : Record Nil
RecCons : (key:String) -> (val : t) -> Record lst -> Record ((key, t)::lst)