Created
June 17, 2015 17:29
-
-
Save david-christiansen/e33084ca9d2fadcdefbe to your computer and use it in GitHub Desktop.
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 ClassNonsense | |
import Language.Reflection.Elab | |
class Foo t where | |
constructor MkFoo | |
foo : t | |
myFoo : Foo Nat | |
myFoo = MkFoo 1 | |
forEffect : () | |
forEffect = | |
%runElab (do | |
addInstance `{Foo} `{myFoo} | |
search) | |
bar : Nat | |
bar = foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment