Karya, built on 2018-03-16T03:22:32 (patch df7306861219887e676081746f4a4edfe05eb0b5)

Safe HaskellNone



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



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?