Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Derive.Call.Macro

Description

Create macros, which are calls that can substitute arguments into an expression. E.g. apply-start-offset | start-s = (cf-rnd-a $distance).

Synopsis

Documentation

make_signature :: [(Parse.Var, Expr.Symbol, Int)] -> Sig.Parser [BaseTypes.Val] Source #

Since I don't have the Sig.Parsers but just the ArgDocs, I can't check the types, but I can have the right doc. The type will be checked by the calls when I apply them.

TODO these are all required, but should I support optional args? But isn't the whole point of doing this in haskell that I don't get tied up in more and more hacky language features?