servant-js: export CommonGeneratorOptions constructors

Allow defCommonGeneratorOptions to be customized using record update
syntax.

Without the re-export, we can't do:

```
import qualified Servant.JS as SJS

myOptions =
  SJS.defCommonGeneratorOptions
    { SJS.moduleName = "myModule"
    , SJS.urlPrefix = "http://localhost"
    }
```
This commit is contained in:
Matt Bray 2015-11-04 10:11:36 +00:00
parent 6c50beb0f8
commit f2a91cfb1f

View file

@ -76,7 +76,7 @@ module Servant.JS
, JavaScriptGenerator
, -- * Options common to all generators
CommonGeneratorOptions
CommonGeneratorOptions(..)
, defCommonGeneratorOptions
, -- * Function renamers