Your myParser = s "foo" is of type Parser a a when parse requires first parameter to be of type Parser (a -> a) a. Basically you need a parser which returns something from successful parse.
For example you can use myParser = Parser.map "GotFoo" (Parser.s "foo") which maps return value you want to actual parser. I used a String value "GotFoo" here to make example simple but usually you would use some custom type instead.
Parser like myParser = Parser.s "foo" </> Parser.int will also work as it has return value. This one parses a path like /foo/123 and then returns that 123.
ps. "#foo" is not valid path, so I fixed that to "/foo" in your example.