Regexp sum flag

I was watching your video and noticed that regexp flags was looking a little stringly typed and that the flags in the elasticsearch api docs could be modeled as a sum type.