I have searched but been unable to find a library to help with this. I would be interested to know if something exists and if not what the generally accepted approach might be? Does converting to regex generally get the job done or are the potential issues with that approach?
Javascript has glob which is based on minimatch which suggests that it converts patterns to regular expressions.
Generating a regular expression seems like a reasonable approach to me! I might use elm-tools/parser to parse the glob string to a simple AST data structure first and then compile that to a regular expression.
I would welcome any advice on improving it as it develops. I’m pretty sure I’m going to miss some critical stuff around the translation but it is fun to try!