Skip to content

Instantly share code, notes, and snippets.

@MarcelineVQ
Created November 6, 2019 05:44
Show Gist options
  • Select an option

  • Save MarcelineVQ/b0f65420892515e3ac19e10c9283e4fb to your computer and use it in GitHub Desktop.

Select an option

Save MarcelineVQ/b0f65420892515e3ac19e10c9283e4fb to your computer and use it in GitHub Desktop.
-- available methods
record Method where
constructor MkMethod
name : String
args : Type
{prf : So (not $ "rpc." `isPrefixOf` name)}
-- I'd like to be able to write
gorb : Method
gorb = MkMethod "foo" ()
-- but because I don't have auto in Method I have to write
gorb : Method
gorb = MkMethod "foo" () {prf = Oh}
-- even this is not finding Oh
gorb : Method
gorb = MkMethod "foo" () {prf = _}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment