Skip to content

Instantly share code, notes, and snippets.

View amiller's full-sized avatar

Andrew Miller amiller

View GitHub Profile
{-# LANGUAGE
GADTs, FlexibleInstances, UndecidableInstances,
StandaloneDeriving, DeriveFunctor, Rank2Types,
GeneralizedNewtypeDeriving, ImpredicativeTypes
#-}
{- Andrew Miller
Mendler style fixpoint, algebra, and fold
See: Meta-Theory a la Carte
http://www.cs.utexas.edu/users/bendy/papers/MTC.pdf
@amiller
amiller / gadtlambda.hs
Last active March 16, 2017 06:56
GADT Lambda Calculator
{-
Andrew Miller
Authenticated Data Structures, Generically:
Merkle-ized Lambda Calculator
-}
{-# LANGUAGE GADTs,
FlexibleInstances, FlexibleContexts, UndecidableInstances,
StandaloneDeriving, TypeOperators, Rank2Types,
{-# LANGUAGE
GADTs,
FlexibleInstances, FlexibleContexts, UndecidableInstances,
StandaloneDeriving, TypeOperators, Rank2Types,
MultiParamTypeClasses, ConstraintKinds,
DeriveTraversable, DeriveFunctor, DeriveFoldable,
TypeFamilies, FunctionalDependencies,
ScopedTypeVariables, GeneralizedNewtypeDeriving
#-}
{-# LANGUAGE
GADTs,
FlexibleInstances, FlexibleContexts, UndecidableInstances,
StandaloneDeriving, TypeOperators, Rank2Types,
MultiParamTypeClasses,
DeriveTraversable, DeriveFunctor, DeriveFoldable,
TypeFamilies, FunctionalDependencies,
ScopedTypeVariables, GeneralizedNewtypeDeriving
#-}
{-# LANGUAGE
GADTs,
FlexibleInstances, FlexibleContexts, UndecidableInstances,
StandaloneDeriving, TypeOperators, Rank2Types,
MultiParamTypeClasses,
DeriveTraversable, DeriveFunctor, DeriveFoldable,
TypeFamilies, FunctionalDependencies,
ScopedTypeVariables, GeneralizedNewtypeDeriving
#-}
{-
Andrew Miller - Feb 19
I'm playing around with indexed functors
Generic Programming with Indexed Functors
Andres Löh and Joseé Pedro Magalhães WGP 2012
http://www.dreixel.net/research/pdf/gpif.pdf
{-
Andrew Miller - RegTree.agda
An attempt at translating "Exploring the Regular Tree Types" from Epigram
http://strictlypositive.org/regular.pdf
-}
module RegTree where
open import Data.Product
{-
Andrew Miller
Merkle Monads - Generalized Authenticated Data Structures in Haskell
-}
{-# LANGUAGE
FlexibleInstances, FlexibleContexts, UndecidableInstances,
StandaloneDeriving, TypeOperators, Rank2Types,
{-# LANGUAGE
FlexibleInstances,
FlexibleContexts,
UndecidableInstances,
StandaloneDeriving,
TypeOperators,
UnicodeSyntax,
Rank2Types,
MultiParamTypeClasses,
DeriveTraversable, DeriveFunctor, DeriveFoldable,
(blockplayer)amiller@amiller-asus:~/projects/tahoe-lafs$ bin/tahoe debug trial allmydata.test.test_mutable.MultipleEncodings
allmydata.test.test_mutable
MultipleEncodings
test_multiple_encodings ... [ERROR]
===============================================================================
[ERROR]
Traceback (most recent call last):
Failure: twisted.trial.util.DirtyReactorAggregateError: Reactor was unclean.
DelayedCalls: (set twisted.internet.base.DelayedCall.debug = True to debug)