idris-hackers / idris-lens Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
I was playing around trying to implement the basics of Van Laarhoven lenses, and this weird thing happened:
Lens : (s,t,a,b:Type) -> Type
Lens s t a b = {f : Type -> Type} -> Functor f -> (a -> f b) -> s -> f t
lfst : Lens (p,q) (r,q) p r
lfst {f=(x,y)} fFunctor pfr = map (\z => (z,y)) (pfr x)
The strange thing: f
is supposed to have type Type->Type
. Why does it end up being the s
argument, of type (p,q)
?
I can't seem to find the license for this code. From http://choosealicense.com/no-license [1]:
You’ll have to check with your own legal counsel regarding your particular project, but generally speaking, the absence of a license means that default copyright laws apply. This means that you retain all rights to your source code and that nobody else may reproduce, distribute, or create derivative works from your work.
Did you intend for this code to be open source? If so, can you upload a license, or point me to it?
Thanks!
[1]: See also: the Berne Convention, the international law: http://zvon.org/law/r/bern.html#intro
What is this? What does it do? How do I use it? etc.
It would be super useful to have any API documentation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.