82ecd61f5c
Change-Id: I6c6847fac56f0a9a1a2209792e00a3aec5e672b9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10809 Autosubmit: aspen <root@gws.fyi> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi>
7 lines
No EOL
377 B
Text
7 lines
No EOL
377 B
Text
# -*- mode: snippet -*-
|
|
# name: lens.field
|
|
# key: lens
|
|
# expand-env: ((yas-indent-line 'fixed))
|
|
# --
|
|
${1:field} :: Lens' ${2:Source} ${3:Target}
|
|
$1 = lens _${4:sourceField} $ \\${2:$(-> yas-text s-word-initials s-downcase)} ${4:$(-> yas-text s-word-initials s-downcase)} -> ${2:$(-> yas-text s-word-initials s-downcase)} { _$4 = ${4:$(-> yas-text s-word-initials s-downcase)} } |