[haskell-http-client] add cli option customTestInstanceModule (#2406)

setting `customTestInstanceModule` will import typeclasses from the
specified module into tests/Instances.hs, to provide typeclass
instances for types not known by the generator

this property set using `--additional-properties`

example:
```
--additional-properties=customTestInstanceModule=CustomInstances
```
This commit is contained in:
Jon Schoning
2019-03-15 07:34:46 -05:00
committed by GitHub
parent 5ba35ecd31
commit c9737cf97d
7 changed files with 18 additions and 6 deletions

View File

@@ -62,6 +62,7 @@ These options allow some customization of the code generation process.
| baseModule | Set the base module namespace | | OpenAPIPetstore |
| cabalPackage | Set the cabal package name, which consists of one or more alphanumeric words separated by hyphens | | openapi-petstore |
| cabalVersion | Set the cabal version number, consisting of a sequence of one or more integers separated by dots | 0.1.0.0 | 0.1.0.0 |
| customTestInstanceModule | test module used to provide typeclass instances for types not known by the generator | | |
| configType | Set the name of the type used for configuration | | OpenAPIPetstoreConfig |
| dateFormat | format string used to parse/render a date | %Y-%m-%d | %Y-%m-%d |
| dateTimeFormat | format string used to parse/render a datetime. (Defaults to [formatISO8601Millis][1] when not provided) | | |