Allow customizing browse options via callback

Hi, this is a simple patch to allow customization of `browse` options via user-supplied function. I needed it for a project that involves use of FFI and Template Haskell thus requiring extra options for specific modules