0

I'm starting from authorityL via authorityHostL to hostBSL - I know you can combine lenses via

(authorityL . authorityHostL . hostBSL)

but that fails with Couldn't match type ‘Authority’ with ‘Maybe Authority’. How do I properly deal with the Maybe here?

Reactormonk
  • 21,472
  • 14
  • 74
  • 123

1 Answers1

0

You can add a _Just in between to only focus in on the successful results.

(authorityL . _Just . authorityHostL . hostBSL)

does the trick like it's said in the comments.

Christoph Hegemann
  • 1,434
  • 8
  • 13