bracer icon indicating copy to clipboard operation
bracer copied to clipboard

Codify shared lenses

Open patrickt opened this issue 10 years ago • 0 comments

We need a coherent set of lenses/traversals that make it easy to access the common elements of an AST: names, positions, children, return types, etc. These should probably take the form of typeclasses, maybe even type families:

class HasName a where
    name :: Lens' a Name

patrickt avatar May 01 '14 21:05 patrickt