Daniil Iaitskov
Daniil Iaitskov

Reputation: 6069

Explain hpack macro operators

Today I was working on conferer library and discovered interesting syntax in hpack package.yaml file reminding me some macro language, but I cannot find anything about that topic - no bugs having words operator/macro in hpack tracker.

in package.yaml:

_common/lib: !include ../../utils/package.common.yaml

<<: *everything

in package.common.yaml:

- &everything
  <<: *misc
  <<: *author
  <<: *legal
  <<: *extensions
  <<: *ghcoptions
  <<: *lib

So the included file defines a macro and it is used later.

Upvotes: 0

Views: 64

Answers (0)

Related Questions